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...全文详见:这里


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM