Last active
          December 23, 2015 19:09 
        
      - 
      
- 
        Save you21979/6680951 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| REPO=' | |
| [nginx] | |
| name=nginx repo | |
| baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ | |
| gpgcheck=0 | |
| enabled=1 | |
| ' | |
| echo "$REPO" > /etc/yum.repos.d/nginx.repo | |
| yum update -y | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
curl -L https://gist.github.com/you21979/6680951/raw/0c4a9980264869718933de286a15fdf98835b5ba/nginx_centos_install.sh |bash