init
This commit is contained in:
41
download_nginx
Executable file
41
download_nginx
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
PCRE_VERSION="8.40"
|
||||
ZLIB_VERSION="1.2.11"
|
||||
OPENSSL_VERSION="1.0.2f"
|
||||
NGINX_VERSION="1.10.3"
|
||||
mkdir requirements
|
||||
cd requirements
|
||||
mkdir pcre
|
||||
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$PCRE_VERSION.tar.gz
|
||||
tar -zxf pcre-$PCRE_VERSION.tar.gz -C pcre --strip-components=1
|
||||
rm pcre-$PCRE_VERSION.tar.gz
|
||||
cd pcre
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
mkdir zlib
|
||||
wget http://zlib.net/zlib-$ZLIB_VERSION.tar.gz
|
||||
tar -zxf zlib-$ZLIB_VERSION.tar.gz -C zlib --strip-components=1
|
||||
rm zlib-$ZLIB_VERSION.tar.gz
|
||||
cd zlib
|
||||
./configure
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
mkdir openssl
|
||||
wget http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
|
||||
tar -zxf openssl-$OPENSSL_VERSION.tar.gz -C openssl --strip-components=1
|
||||
rm openssl-$OPENSSL_VERSION.tar.gz
|
||||
cd openssl
|
||||
./configure darwin64-x86_64-cc --prefix=/usr
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
git clone https://github.com/kvspb/nginx-auth-ldap.git
|
||||
git clone https://github.com/openresty/headers-more-nginx-module.git
|
||||
cd ..
|
||||
wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz
|
||||
tar -zxf nginx-$NGINX_VERSION.tar.gz
|
||||
rm nginx-$NGINX_VERSION.tar.gz
|
||||
ln conf_nginx nginx-$NGINX_VERSION/
|
||||
Reference in New Issue
Block a user