Last active
July 15, 2016 08:18
-
-
Save melice/a697d66edaa5e713e051 to your computer and use it in GitHub Desktop.
nginx 预编译版本安装脚本 ubuntu 14.04
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 | |
######################################### | |
#Function: install_nginx | |
#Usage: bash install_nginx.sh | |
#Author: melice | |
#Version: 1.0 | |
######################################### | |
wget http://nginx.org/keys/nginx_signing.key | |
sudo apt-key add nginx_signing.key | |
echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list | |
echo "deb-src http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment