
- 去nginx解压目录下执行
./configure --with-http_ssl_module
报错,没有OpenSSL库

- 安装openssl
apt-get install openssl
apt-get install libssl-dev
./configure --with-http_ssl_module
- 执行 make
make
- 将原来 nginx 备份
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
- 将新的 nginx 覆盖旧安装目录
cp objs/nginx /usr/local/nginx/sbin/nginx
- 再试一下
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
成功

参考资料:https://blog.csdn.net/weiyangdong/article/details/80008543
网友评论