ubuntu完全重装nginx

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 nginx
nginx install
nginx-common install
nginx-core install

 

1.4 删除1.3查询出与nginx有关的软件

sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common

sudo apt-get --purge remove ngi...全文详见:这里

posted @ 2020-07-17 21:21  草根菜的爱  阅读(4261)  评论(0)    收藏  举报