Last active
August 29, 2015 14:04
-
-
Save starsea/57e3be95c25740d13f73 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
#!/bin/bash | |
yum -y install gcc gcc-c++ autoconf automake wget | |
#nginx dependency | |
#gzip -- zlib库 | |
#rewrite-- pcre库 | |
#ssl -- openssl库 | |
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel | |
#install | |
NGINX_VERSION="1.6.2" | |
wget -c http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz | |
tar -zxvf nginx-${NGINX_VERSION}.tar.gz | |
cd nginx-${NGINX_VERSION} | |
./configure --prefix=/usr/local/webserver/nginx1.6.0 --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module | |
make | |
make install | |
ln -s /usr/local/webserver/nginx1.6.0 /usr/local/webserver/nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment