1. 首页
  2. 服务器
  3. 详情

ubuntu服务器删除apt-get安装的nginx

changs  • 

1、删除nginx,–purge包括配置文件

sudo apt-get --purge remove nginx


2、自动移除全部不使用的软件包

sudo apt-get autoremove


3、罗列出与nginx相关的软件

dpkg --get-selections|grep nginx


4、删除上步查询出与nginx有关的软件

sudo apt-get --purge remove nginx


5、查看nginx正在运行的进程,如果有就kill掉

ps -ef |grep nginx


6、全局查找与nginx相关的文件

sudo  find  /  -name  nginx*


7、依依删除上步列出的所有文件

sudo rm -rf file


声明:若要转载FengHuoX中的任何博客请注明转载地址