9

如何在 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.
4

3 回答 3

3

您很可能曾经passenger-install-nginx-module安装它。如果你运行gem uninstall passenger它,它也会删除依赖的模块。

于 2013-03-12T19:25:37.083 回答
2

卸载在官方手册《Phusion Passenger 用户指南,Nginx 版》中有介绍。

于 2013-03-13T08:19:09.447 回答
2

使用以下命令完全删除 Nginx:

sudo apt-get purge nginx-*
sudo apt-get autoremove

或者

对于 Debian/Ubuntu

sudo apt-get remove -y passenger

红帽/CentOS

sudo yum remove -y passenger

macOS + 自制软件

brew uninstall passenger

红宝石

gem uninstall passenger

希望这能解决您的问题!

于 2018-04-09T04:56:06.360 回答