Created
July 7, 2016 16:38
-
-
Save wrannaman/d0274818193a89f15684aa23fa435b0e to your computer and use it in GitHub Desktop.
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
#nginx | |
sudo yum groupinstall 'Development Tools' | |
sudo yum install pcre-devel | |
### something like | |
wget http://nginx.org/download/nginx-1.8.0.tar.gz?_ga=1.266525902.1751854525.1458831032 | |
tar -xf nginx-1.8.0.tar.gz | |
mv nginx-1.8.0 /etc/nginx | |
cd /etc/nginx | |
./configure | |
make | |
make install | |
# Download nginx startup script | |
wget -O init-deb.sh https://www.linode.com/docs/assets/660-init-deb.sh | |
# Move the script to the init.d directory & make executable | |
sudo mv init-deb.sh /etc/init.d/nginx | |
sudo chmod +x /etc/init.d/nginx | |
# Add nginx to the system startup | |
sudo /usr/sbin/update-rc.d -f nginx defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment