- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apt-get install nginx
apt-get remove nginx
apt-get remove nginx-core
apt-get remove nginx-common
cd ~
mkdir build
cd ~/build
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential
wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -xzvf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config --prefix=/usr/local/openssl/openssl-1.02j --openssldir=/usr/local/openssl/openssl-1.02j
make depend
make && make test
sudo make install
cd ~/build
wget https://openresty.org/download/openresty-1.11.2.2.tar.gz
tar xzvf openresty-1.11.2.2.tar.gz
cd openresty-1.11.2.2
./configure \
--with-sha1=/opt/openssl/include/openssl \
--with-md5=/opt/openssl/include/openssl \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--lock-path=/var/lock/nginx.lock \
--pid-path=/var/run/nginx.pid \
--with-openssl=../openssl-1.0.2j \
-j4
make -j4
sudo make install
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -