Centos7 卸载 Nginx 并重新安装 Nginx


1)  卸载nginx

[root@locahost /]# yum remove nginx

 

2) 查看nginx是否还存在

[root@localhost /]# which nginx

 

 

3)重新安装 Nginx

[root@localhost /]# yum install nginx

 

4)启动 Nginx

[root@localhost /]# yum start nginx

 

5)设置自动开机启动 Nginx

[root@localhost /]# yum enable nginx

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM