Created
October 7, 2013 09:45
-
-
Save ryoppy/6865261 to your computer and use it in GitHub Desktop.
nginx-install
This file contains 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 | |
set -ex | |
cat << CONF > /etc/yum.repos.d/nginx.repo | |
[nginx] | |
name=nginx repo | |
baseurl=http://nginx.org/packages/centos/6/\$basearch/ | |
gpgcheck=0 | |
enabled=1 | |
CONF | |
yum -y install nginx | |
chkconfig nginx on | |
service nginx start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment