首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何从ubuntu 13.04中完全移除nginx?

如何从ubuntu 13.04中完全移除nginx?
EN

Stack Overflow用户
提问于 2013-06-13 01:15:52
回答 1查看 29.9K关注 0票数 16

我知道刚才也有人问过这个问题,我也问过了,但这并不能解决我的问题。

要从系统中删除nginx,我执行了以下命令

代码语言:javascript
复制
sudo apt-get remove nginx

sudo apt-get purge nginx

它实际上卸载了所有东西,但当我执行nginx -V时,它仍然返回以下内容...

nginx版本: nginx/1.4.1由gcc 4.7.3构建(Ubuntu/Linaro 4.7.3-1ubuntu1) TLS支持开启配置参数:--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf ---log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/锁路径=/var/ nginx.pid /nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --nginx.pid=nginx --group=nginx --- -with-http_ssl_module --with-http_realip_module --with-http_mail_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gzip_static_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail--with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module

此外,ps aux | grep nginx没有显示任何正在运行的nginx服务。

现在我不确定我是否已经完全删除了nginx?如果不是,那么如何删除它?

然后dpkg -l | grep nginx返回如下..。

ii nginx-通用1.2.6-1ubuntu3所有小型、强大、可伸缩的web/代理服务器-通用文件

ii nginx-full 1.2.6-1ubuntu3 i386 nginx web/proxy服务器(标准版)

编辑:我是从源代码安装的。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-13 02:00:12

dpkg -l的输出所示,所涉及的包名实际上是nginx-fullnginx-common,而不仅仅是nginx。这些是需要删除的包。

要查找包含特定程序(例如nginx)的包,您始终可以运行dpkg -S $(which nginx)

票数 26
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17071453

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档