centos安裝源碼包nginx報錯

Posted Bug雷點_技術手扎

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos安裝源碼包nginx報錯相关的知识,希望对你有一定的参考价值。

系統版本:CentOS Linux release 7.6.1810 (Core)

[root@localhost nginx-1.12.0]# ./configure --prefix=/data/xx/

./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.

補安裝pcre-devel,openssl-devel即可

[root@localhost nginx-1.12.0]# yum install pcre-devel -y
[root@localhost nginx-1.12.0]# yum install openssl-devel -y
[root@localhost nginx-1.12.0]# ./configure --prefix=/data/xx/

  nginx path prefix: "/data/xx/"
  nginx binary file: "/data/xx//sbin/nginx"
  nginx modules path: "/data/xx//modules"
  nginx configuration prefix: "/data/xx//conf"
  nginx configuration file: "/data/xx//conf/nginx.conf"
  nginx pid file: "/data/xx//logs/nginx.pid"
  nginx error log file: "/data/xx//logs/error.log"
  nginx http access log file: "/data/xx//logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

以上是关于centos安裝源碼包nginx報錯的主要内容,如果未能解决你的问题,请参考以下文章

Linux CentOSCentOS 7 YUM 安裝 MySQL 5.7

nginxtomcatapache-ftpservermariadb 环境的简单安装搭建

7_1一文Centos8安裝Git

yum/rpm 查看安裝位置

AIX 下NFS挂载出错解决 : 1831-011 access denied

Centos 7 安裝 Redmine 4.x