如何卸载作为乘客安装的一部分安装在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条答案
按热度按时间rqdpfwrv1#
您很可能使用了
passenger-install-nginx-module
来安装它。如果您运行gem uninstall passenger
,它也会删除依赖模块。qqrboqgw2#
卸载是涵盖在官方手册“Phusion乘客用户指南,Nginx版本”。
piv4azn73#
使用以下命令完全删除Nginx:
或
适用于Debian/Ubuntu
红帽/CentOS
macOS +自制软件
Ruby
希望这能解决你的问题!
rqqzpn5f4#