创建文件:
/etc/yum.repos.d/nginx.repo
添加如下内容:
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
module_hotfixes=true
然后执行
sudo yum install nginx
具体配置:
vi /etc/nginx/nginx.conf
服务:
systemctl start nginx.service # 启动Nginx服务
systemctl enable nginx.service #开机自启
参考内容:
- http://nginx.org/en/linux_packages.html#mainline;
- https://gist.github.com/ifels/c8cfdfe249e27ffa9ba1;
最新评论
没有磁力吗
不行,这个版本4K还是限速~
搞笑了,官网打不开的机场,检验倒数到0直接卡死了
都是ip6的,有ip4的吗?老电视不支持ip6