Ubuntu 卸载postgresql


#####1.卸载当前所有Postgresql 相关的Package:

apt-get remove postgresql*

The following packages will be REMOVED:
postgresql* postgresql-9.1* postgresql-client-9.1* postgresql-client-common* postgresql-common*

2.下面删除配置文件和User 是关键:
rm -r /etc/postgresql/
rm -r /var/lib/postgresql/
userdel -r postgres

卸载干净

转载自:https://blog.csdn.net/u010820857/article/details/85004206

You may also like...

退出移动版