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