Created
December 24, 2018 07:41
-
-
Save JoeShi/5ebf2b99812902bf8a904c631264574a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
# update & install compiler | |
apt-get update -y | |
apt-get install gcc -y | |
apt-get install build-essential -y | |
# pcre | |
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.42.tar.gz | |
tar -zxf pcre-8.42.tar.gz | |
cd pcre-8.42 | |
./configure | |
make | |
make install | |
cd .. | |
# zlib | |
wget http://zlib.net/zlib-1.2.11.tar.gz | |
tar -zxf zlib-1.2.11.tar.gz | |
cd zlib-1.2.11 | |
./configure | |
make | |
make install | |
cd .. | |
# nginx | |
wget https://nginx.org/download/nginx-1.15.7.tar.gz | |
tar zxf nginx-1.15.7.tar.gz | |
cd nginx-1.15.7 | |
./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-pcre=../pcre-8.42 --with-zlib=../zlib-1.2.11 --with-stream | |
make | |
make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment