美文网首页
Centos7中Nginx安装

Centos7中Nginx安装

作者: very_cute_girls | 来源:发表于2019-12-06 14:14 被阅读0次

#安装

sudo yum install nginx

#启动Nginx

sudo systemctl start nginx

#设置开机启动

systemctl enable nginx 

#其它命令

systemctl disable nginx #禁止开机启动
systemctl status nginx  #查看运行状态
systemctl restart nginx  #重启服务

相关文章

网友评论

      本文标题:Centos7中Nginx安装

      本文链接:https://www.haomeiwen.com/subject/tzrugctx.html