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