Skip to content

Instantly share code, notes, and snippets.

@jmervine

jmervine/install_nginx.sh

Last active Dec 16, 2015
Embed
What would you like to do?
#!/bin/bash
#
# Run like so:
#
# sudo bash < <( curl https://gist.github.com/jmervine/5359133/raw/ )
#
# Note: this is only for Centos 6 / x86_64
echo "[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/x86_64/
gpgcheck=0
enabled=1
" > /etc/yum.repos.d/nginx.repo
yum install --assumeyes nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment