Ubuntu 16.04卸载PostgresQL

版权声明:欧阳大仙萌萌哒 https://blog.csdn.net/shana_8/article/details/81506155
shana@Ubuntu1604:~$ ps -aux |grep postgresql ##查看postgresql进程是否仍在运行

shana@Ubuntu1604:~$ sudo service postgresql stop ##暂停服务

shana@Ubuntu1604:~$ sudo apt-get --purge remove postgresql ##卸载及删除安装包

删除对应的配置

shana@Ubuntu1604:~$ sudo rm -r /etc/postgresql/

shana@Ubuntu1604:~$ sudo rm -r /etc/postgresql-common/

shana@Ubuntu1604:~$ sudo rm -r /var/lib/postgresql/

shana@Ubuntu1604:~$ sudo userdel -r postgres

shana@Ubuntu1604:~$ sudo groupdel postgres

猜你喜欢

转载自blog.csdn.net/shana_8/article/details/81506155