Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 卸载乘客安装的nginx_Ruby On Rails_Nginx_Package_Passenger_Uninstallation - Fatal编程技术网

Ruby on rails 卸载乘客安装的nginx

Ruby on rails 卸载乘客安装的nginx,ruby-on-rails,nginx,package,passenger,uninstallation,Ruby On Rails,Nginx,Package,Passenger,Uninstallation,如何卸载Ubuntu 11.04上作为乘客安装一部分安装的nginx 我应该只卸载乘客吗?这也会删除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 n

如何卸载Ubuntu 11.04上作为乘客安装一部分安装的nginx

我应该只卸载乘客吗?这也会删除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.

您最有可能使用
乘客安装nginx模块
进行安装。如果运行
gem uninstall passenger
,它也将删除相关模块。

官方手册“”中介绍了卸载

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

希望这能解决你的问题

根据这个错误消息,您没有安装nginx——至少通过aptitude。是什么让你这么想的?
sudo-apt-get-purge-nginx-*
sudo-apt-get-autoremove
。我不确定乘客编译和安装nginx时使用的机制是什么,但它确实存在。当我查看服务nginx状态或/etc/init.d/nginx状态时,我可以看到它正在运行。情况似乎并非如此:这不包括卸载可能已通过
passenger install nginx module下载的nginx。不过,本文确实讨论了这一点。“卸载Phusion Passenger后无需重新编译Nginx。尽管Nginx将包含Phusion Passenger Nginx模块,但在删除所有Phusion Passenger配置指令后,该模块将不会执行任何操作。”你让我开心了!