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

猜你喜欢

转载自www.cnblogs.com/ryanzheng/p/11263031.html
今日推荐