centos安装nginx1.15配置ssl错误解决方案

./configure –prefix=/usr/local/nginx  –user=nobody –group=nobody –with-http_ssl_module  –with-http_realip_module  –with-http_gzip_static_module  –with-pcre

./configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using –with-openssl=<path> option.
解决方法:
执行以下命令:
yum -y install openssl openssl-devel
安装Nginx时报错
./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel

发表评论

邮箱地址不会被公开。 必填项已用*标注