卸载postgresql数据库的详细方法-创新互联
创新互联www.cdcxhl.cn八线动态BGP香港云服务器提供商,新人活动买多久送多久,划算不套路!
这篇文章将为大家详细讲解有关卸载postgresql数据库的详细方法,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
删除相关的安装
sudo apt-get --purge remove postgresql\*
删除配置及相关文件
sudo rm -r /etc/postgresql/ sudo rm -r /etc/postgresql-common/ sudo rm -r /var/lib/postgresql/
删除用户和所在组
sudo userdel -r postgres sudo groupdel postgres
重新安装
sudo apt-get install postgresql
关于卸载postgresql数据库的详细方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。
分享文章:卸载postgresql数据库的详细方法-创新互联
URL地址:http://tyjierui.cn/article/dsehed.html