2012-05-17 80 views
8

如何卸載作爲Ubuntu 11.04乘客安裝一部分安裝的nginx?卸載由乘客安裝的nginx

我應該只是gem uninstall passenger?這是否會刪除nginx?

這是我所看到的,當我運行apt-get remove

sudo apt-get remove nginx-common nginx-full 
Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
**Package nginx-common is not installed, so not removed 
Package nginx-full is not installed, so not removed** 
The following packages were automatically installed and are no longer required: 
    nspluginwrapper linux-headers-2.6.38-13-generic libmysqlclient-dev libaprutil1-ldap libaprutil1-dev libmysqlclient16 libdb4.8-dev libaprutil1-dbd-sqlite3 
    apache2.2-bin linux-headers-2.6.38-14-generic linux-headers-2.6.38-12 linux-headers-2.6.38-13 linux-headers-2.6.38-14 mysql-common linux-headers-2.6.38-12-generic 
Use 'apt-get autoremove' to remove them. 
+0

根據此錯誤消息,您沒有安裝nginx - 至少通過aptitude。是什麼讓你覺得你呢? – Veraticus

+4

'sudo apt-get purge nginx- *','sudo apt-get autoremove'。 –

+0

我不確定乘客用於編譯和安裝nginx的機制,但它確實存在。當我查看服務nginx狀態或/etc/init.d/nginx狀態時,我可以看到它正在運行 – thanikkal

回答

2

你最有可能使用的passenger-install-nginx-module安裝它。如果您運行gem uninstall passenger它也會刪除相關模塊。

+0

這似乎不是這種情況:http://www.modrails.com/documentation/Users%20guide%20Nginx。 html#uninstalling –

1

卸載包含在官方手冊「Phusion Passenger users guide, Nginx version」中。

+0

這不包括卸載可能已經用'passenger-install-nginx-module'下載的nginx –

+0

這個*雖然討論它。 「卸載Phusion Passenger後,Nginx無需重新編譯,而Nginx將包含Phusion Passenger Nginx模塊,當所有Phusion Passenger配置指令被刪除時,該模塊將不會執行任何操作。」 –