微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

nginx1安装

1.

./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with Nginx by using --with-pcre=<path> option.
./configure: error: HTTP重写模块需要PCRE库。

您可以使用——with -http_rewrite_module禁用模块

选项,或将PCRE库安装到系统中,或构建PCRE库

通过使用——with-pcre=选项静态地从Nginx文件获取

解决办法:

yum -y install pcre-devel

2.

./configure: error: the HTTP gzip module requires the zlib library.
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with Nginx by using --with-zlib=<path> option.
HTTP gzip模块需要zlib库。

您可以使用——without-http_gzip_module禁用该模块

选项,或将zlib库安装到系统中,或构建zlib库

通过使用——with-zlib=选项静态地从Nginx文件获取

解决办法:

yum -y install zlib-devel

3.

还有可能出现:

错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with Nginx by using
--with-http_ssl_module --with-openssl=<path> options.

解决办法:

yum -y install openssl openssl-devel

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐