Skip to content

Instantly share code, notes, and snippets.

@starsea
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save starsea/57e3be95c25740d13f73 to your computer and use it in GitHub Desktop.
Save starsea/57e3be95c25740d13f73 to your computer and use it in GitHub Desktop.
#!/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