彻底删除CentOS上的Nginx

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xinyflove/article/details/83108379

删除使用yum安装的nginx方法

1.停止Nginx软件

[root@localhost ~]# service nginx stop

2.删除Nginx的自动启动

[root@localhost ~]# chkconfig nginx off

3.从源头删除Nginx

[root@localhost ~]# rm -rf /usr/sbin/nginx
[root@localhost ~]# rm -rf /etc/nginx
[root@localhost ~]# rm -rf /etc/init.d/nginx

4.再使用yum清理

  [root@localhost ~]# yum remove nginx

结束。

猜你喜欢

转载自blog.csdn.net/xinyflove/article/details/83108379