如何在Ubuntu 11.04上卸载作为乘客安装一部分安装的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 :(得分:3)
您最有可能使用passenger-install-nginx-module
进行安装。如果您运行gem uninstall passenger
,它也会删除相关模块。
答案 1 :(得分:2)
官方手册“Phusion Passenger users guide, Nginx version”中介绍了卸载。
答案 2 :(得分:2)
使用以下命令完全删除Nginx:
sudo apt-get purge nginx-*
sudo apt-get autoremove
OR
对于Debian / Ubuntu
sudo apt-get remove -y passenger
Red Hat / CentOS
sudo yum remove -y passenger
macOS + Homebrew
brew uninstall passenger
Ruby gem
gem uninstall passenger
希望这能解决您的问题!