nginx升级并且使用最新版本openssl
仅供本人自己记录参考
openssl
cd /usr/local/src/
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxfv openssl-1.1.1g.tar.gz
nginx安装
记得备份之前的nginx配置
先停止nginx
lsof -i:80
kill -9 nginx进程号
mkdir -p /usr/local/nginx
cd /usr/local/nginx
wget https://nginx.org/download/nginx-1.18.0.tar.gz
tar -zxvf nginx-1.18.0.tar.gz
cd nginx-1.18.0
本机自己安装openssl目录
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-openssl=/usr/local/src/openssl-1.1.1g
make && make install
启动nginx
cd /usr/local/nginx/sbin
./nginx