Skip to content

Instantly share code, notes, and snippets.

@ryoppy
Created October 7, 2013 09:45
Show Gist options
  • Save ryoppy/6865261 to your computer and use it in GitHub Desktop.
Save ryoppy/6865261 to your computer and use it in GitHub Desktop.
nginx-install
#!/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