您的位置:首页 > 运维架构 > Nginx

彻底删除nginx

2016-02-24 18:43 645 查看
1.先执行一下命令:

sudo apt-get –purge remove nginx

sudo apt-get autoremove dpkg –get-selections|grep nginx 罗列出与nginx相关的软件

sudo apt-get –purge remove nginx-common

sudo apt-get –purge remove nginx

这样就可以完全卸载掉nginx包括配置文件

2.ps -aux |grep nginx

看下nginx还有没有启动,一般执行完1后,nginx还是启动着的,如下: bkxmgx@ubuntu:/$ ps -ef |grep nginx root 4061 2418 0 Mar11 ? 00:00:00 nginx: master process sbin/nginx nobody 4062 4061 0 Mar11 ? 00:00:00 nginx: worker process bkxmgx 15487 4229 0 01:13 pts/0 00:00:00 grep –color=auto nginx

3.killall -9 nginx 杀死nginx的进程

4.sudo find / -name ‘nginx’ | xargs rm -rf 删除nginx的所有文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: