美文网首页
nginx-yum安装

nginx-yum安装

作者: 李哈哈_2c85 | 来源:发表于2021-05-27 13:48 被阅读0次
1、添加yum源、安装、启动
 rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
 yum install -y nginx
 systemctl start nginx.service && systemctl enable nginx.service
2、配置文件路径

/etc/nginx/conf.d/

相关文章

网友评论

      本文标题:nginx-yum安装

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