nginx配置官网yum源
以centos6.5 为例
1 登录Nginx下载页面
http://nginx.org/en/download.html
2下拉点击stable version跳转
Pre-Built Packages
Linux packages for stable version
Linux packages for mainline version
vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
将OS 换成centos
OSRELEASE 换成 6
即可
以centos6.5 为例
1 登录Nginx下载页面
http://nginx.org/en/download.html
2下拉点击stable version跳转
Pre-Built Packages
本文来自无奈人生安全网
Linux packages for stable version
Linux packages for mainline version
vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
enabled=1
copyright 无奈人生
将OS 换成centos
OSRELEASE 换成 6
即可