LeoTalk.cn
自由、随心、随性!

centos7下yum安装nginx

1.通过rpm 添加yum源

rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

2.yum安装nginx

yum -y install nginx

3.nginx命令

启动 systemctl start nginx
重启 systemctl restart nginx
停止 systemctl stop nginx

4.设置开启自启动

systemctl enable ngiax
赞(0) 打赏
未经允许不得转载:LeoTalk » centos7下yum安装nginx
标签:

评论 抢沙发

评论前必须登录!

 

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏