Skip to content

Instantly share code, notes, and snippets.

@davidbj
Created December 9, 2013 07:05
Show Gist options
  • Select an option

  • Save davidbj/7868423 to your computer and use it in GitHub Desktop.

Select an option

Save davidbj/7868423 to your computer and use it in GitHub Desktop.
I. change yum source
vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
II. yum install nginx
yum install nginx -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment