2012-03-01 120 views
0

我用「sudo易於得到的autoremove Postgres的卸載我的本地服務器上的PostgreSQL數據庫。我用'sudo netstat -anpt'來查找postgres仍然在運行?爲什麼?有人糾正我的理解?爲什麼我的postgres進程仍在運行?

回答

0

這是因爲正在運行的進程在內存中,因此它是獨立發生的事情在磁盤上的。只有當正在運行的進程需要加載已被刪除的內容時才重要。所有你需要做的是找到進程ID(ps -aux),然後kill -9 <pid>

1

你可以嘗試手動卸載(如根,假設默認安裝路徑):

/opt/PostgreSQL/8.3/installer/server/removeshortcuts.sh /opt/PostgreSQL/8.3 8.3 
/etc/init.d postgresql-8.3 stop 
rm -rf /opt/PostgreSQL 
rm /etc/postgres-reg.ini 
rm -rf /etc/init.d/postgresql-8.3 
userdel postgres 

if /etc/ld.so.conf exists, edit it and remove /opt/PostgreSQL/8.3/lib 
if present. 

if /etc/ld.so.conf.d exists: 

rm /etc/ld.so.conf.d/postgresql-8.3.conf 
相關問題