出现如图所示错误,处理办法以下nginx
去nginx解压目录下执行markdown
./configure --with-http_ssl_module
post
若是报错 ./configure: error: SSL modules require the OpenSSL library.则执行测试
yum -y install openssl openssl-devel
ui
./configure
atom
./configure --with-http_ssl_module
spa
执行 make
(切记不能 make install 会覆盖安装目录)3d
将原来 nginx 备份code
cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
blog
将新的 nginx 覆盖旧安装目录
cp objs/nginx /usr/local/nginx/sbin/nginx
若是报错,执行 cp -rfp objs/nginx /usr/local/nginx/sbin/nginx
测试 nginx 是否正确
/usr/local/nginx/sbin/nginx -t
如图最后是测试成功的,以前遇到一个错误是个人SSL证书路径有错,修改后测试经过