创建
/etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7Server/x86_64/
gpgcheck=0
enabled=1
然后yum install nginx 即可
修改/etc/nginx/nginx.conf
最后
service nginx start
systemctl enable nginx
评论
发表评论