免费资源网 – https://freexyz.cn/
Nginx安装withSSL模块
Nginx 配置文件,开启ssl访问时,报出错误信息:
nginx: [emerg] the “ssl” parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx_proxy.mimvp.com.conf:76
原因分析:
nginx缺少http_ssl_module模块,编译安装的时候带上 –with-http_ssl_module 配置就行了
with-http_ssl_module:提供SSL加密功能
备注:
Nginx统一安装1.10.2版本
1.安装编译工具及库文件
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel2.安装PCRE
wget http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz tar zxvf pcre-8.35.tar.gz cd pcre-8.35 ./configure make && make install pcre-config –version3.安装Nginx
wget -O /data/software/nginx-1.10.2.tar.gz http://nginx.org/download/nginx-1.10.2.tar.gz tar -zxvf /data/software/nginx-1.10.2.tar.gz cd /data/software/nginx-1.10.2 ./configure –prefix=/data/apps/nginx-main –pid-path=/data/logs/nginx-main/nginx.pid –lock-path=/data/apps/nginx-main/nginx.lock –error-log-path=/data/logs/nginx-main/error.log –http-log-path=/data/logs/nginx-main/access.log –http-client-body-temp-path=/data/temps/nginx-main/client_body_temp –http-proxy-temp-path=/data/temps/nginx-main/proxy_temp –http-fastcgi-temp-path=/data/temps/nginx-main/fastcgi_temp –http-uwsgi-temp-path=/data/temps/nginx-main/uwsgi_temp –http-scgi-temp-path=/data/temps/nginx-main/scgi_temp –with-http_stub_status_module –with-http_ssl_module –with-http_realip_module –with-pcre=/data/software/pcre-8.35 make make install© 版权声明
THE END
暂无评论内容