- mkdir /mysoftware
- cd /mysoftware
- wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz
- tar -zxvf perl-5.28.0.tar.gz
- cd perl-5.28.0
- ./Configure -des -Dprefix=$HOME/localperl
- make
- make install
- cd ..
- wget -c https://github.com/openssl/openssl/archive/master.zip
- unzip master.zip
- cd openssl-master
- ./config --prefix=/usr/local/openssl-1.1.2
- make
- make install
- cd ..
- wget -c https://zlib.net/zlib-1.2.11.tar.gz
- tar -zxvf zlib-1.2.11.tar.gz
- cd zlib-1.2.11
- ./configure --prefix=/usr/local/zlib-1.2.11
- make
- make install
- cd ..
- wget -c https://sourceforge.net/projects/pcre/files/pcre/8.42/pcre-8.42.tar.gz/download -O pcre-8.42.tar.gz
- tar -zxvf pcre-8.42.tar.gz
- cd pcre-8.42
- ./configure --prefix=/usr/local/pcre-8.42
- make
- make install
- cd ..
- wget -c http://nginx.org/download/nginx-1.15.5.tar.gz
- ./configure --prefix=/usr/local/nginx-1.15.5 --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module --with-pcre=../pcre-8.42 --with-openssl=../openssl-master --with-zlib=../zlib-1.2.11
- make && make install
来源: http://www.bubuko.com/infodetail-2832260.html