当前位置:   article > 正文

Ubuntu下完全卸载nginx服务器_ubuntu 卸载nginx

ubuntu 卸载nginx
删除nginx,–purge包括配置文件
sudo apt-get --purge remove nginx
  • 1
自动移除全部不使用的软件包
sudo apt-get autoremove
  • 1
列出与nginx相关的软件 并删除显示的软件
dpkg --get-selections|grep nginx

sudo apt-get --purge remove nginx
sudo apt-get --purge remove nginx-common
sudo apt-get --purge remove nginx-core
  • 1
  • 2
  • 3
  • 4
  • 5
再次执行
dpkg --get-selections|grep nginx

which nginx # 不在显示nginx
  • 1
  • 2
  • 3

这样就可以完全卸载掉nginx包括配置文件
注意点:首先需要停止nginx的服务

sudo service nginx stop
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/553548
推荐阅读
相关标签
  

闽ICP备14008679号