nginx 官方源 2018

No Comments Linux
Pre-Built Packages for Stable version

To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo with the following contents:

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/
gpgcheck=0
Replace “OS with “rhel” or centos”, depending on the distribution used, and “OSRELEASE” with “6 or “7”, for 6.x or 7.x versions, respectively.enabled=1
 
举例

# nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

发表评论