nginx-yum安装

2021-05-27  本文已影响0人  李哈哈_2c85
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/

上一篇 下一篇

猜你喜欢

热点阅读