卸载乘客安装的nginx

gdrx4gfi  于 2023-03-01  发布在  Nginx
关注(0)|答案(4)|浏览(137)

如何卸载作为乘客安装的一部分安装在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.
rqdpfwrv

rqdpfwrv1#

您很可能使用了passenger-install-nginx-module来安装它。如果您运行gem uninstall passenger,它也会删除依赖模块。

qqrboqgw

qqrboqgw2#

卸载是涵盖在官方手册“Phusion乘客用户指南,Nginx版本”。

piv4azn7

piv4azn73#

使用以下命令完全删除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

Ruby

gem uninstall passenger

希望这能解决你的问题!

rqqzpn5f

rqqzpn5f4#

rvmsudo gem uninstall passenger

相关问题