ubuntu14.04彻底删除nginx
来源:互联网 发布:人工智能学校 编辑:程序博客网 时间:2024/04/29 16:53
1.先执行一下命令:
1.1 删除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
1.2 自动移除全部不使用的软件包
sudo apt-get autoremove
1.3 罗列出与nginx相关的软件
dpkg --get-selections|grep nginx
执行1.3的结果:stephen@stephen-OptiPlex-390:~$ dpkg --get-selections|grep nginxnginx installnginx-common installnginx-core install
1.4 删除1.3查询出与nginx有关的软件
sudo apt-get --purge remove nginxsudo apt-get --purge remove nginx-commonsudo apt-get --purge remove nginx-core
这样就可以完全卸载掉nginx包括配置文件
2.查看nginx正在运行的进程,如果有就kill掉
ps -ef |grep nginx
看下nginx还有没有启动,一般执行完1后,nginx还是启动着的,如下:
stephen@stephen-OptiPlex-390:~$ ps -ef |grep nginxroot 7875 2317 0 15:02 ? 00:00:00 nginx: master process /usr/sbin/nginxwww-data 7876 7875 0 15:02 ? 00:00:00 nginx: worker processwww-data 7877 7875 0 15:02 ? 00:00:00 nginx: worker processwww-data 7878 7875 0 15:02 ? 00:00:00 nginx: worker processwww-data 7879 7875 0 15:02 ? 00:00:00 nginx: worker processstephen 8321 3510 0 15:20 pts/0 00:00:00 grep --color=auto nginx
3.kill nginx进程
sudo kill -9 7875 7876 7877 7879
4.全局查找与nginx相关的文件
sudo find / -name nginx*
5.依依删除4列出的所有文件
sudo rm -rf file
这样就彻底删除nginx了
6. 再次重装
sudo apt-get updatesudo apt-get install nginx
1 1
- ubuntu14.04彻底删除nginx
- ubuntu14.04彻底删除nginx
- ubuntu16.04彻底删除nginx
- 彻底删除nginx
- 彻底删除nginx
- 彻底删除nginx
- ubuntu中彻底删除nginx
- ubuntu14.04 彻底重装mysql
- Ubuntu下彻底删除/重装 Nginx
- ubuntu 16.04.1 nginx彻底删除
- ubuntu14.04 nginx配置
- Ubuntu14.04安装Nginx
- Ubuntu14.04 安装Nginx
- mysql-ubuntu14.04彻底卸载mysql
- ubuntu14.04 + nginx+mysql+php
- ubuntu14.04 +nginx+php5-fpm
- ubuntu14.04 nginx + fmp + mysql
- ubuntu14.04+Django+Nginx+uWSGI
- 华为路由器的端口映射NAT配置
- Linux configure 参数解释
- 116.Examine the data in the ORD_ITEMS table:
- 特征选择方法综述
- Android三种常用动画分享
- ubuntu14.04彻底删除nginx
- JAVA邮件发送的简单实现
- iOS设备远程Push功能详解
- android 中数据库
- 更改CheckBox的Button按钮样式
- selenium文档
- listview嵌套listview ScrollView嵌套listview 的冲突问题
- android应用程序静态分析工具androguard初体验
- MyEclipse如何从svn上下载项目