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/
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
/etc/nginx/conf.d/
本文标题:nginx-yum安装
本文链接:https://www.haomeiwen.com/subject/wbyksltx.html
网友评论