nickchou

卸载用yum方式安装的nginx,卸载前先备份好nginx.conf

  1. 先停止nginx
service nginx stop
  1. 关闭自启动
chkconfig nginx off

3.删除相关文件

rm -rf /usr/sbin/nginx
rm -rf /etc/nginx
rm -rf /etc/init.d/nginx
  1. 卸载
yum remove nginx
  1. 检查是否还有残余文件,有的话执行步骤3继续删除
whereis nginx

分类:

技术点:

相关文章:

  • 2021-12-01
  • 2021-08-27
  • 2021-12-29
  • 2021-07-28
  • 2021-06-25
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-15
  • 2021-12-16
  • 2022-01-01
  • 2022-01-01
  • 2021-12-22
  • 2021-10-06
  • 2021-10-02
相关资源
相似解决方案