centos安裝源碼包nginx報錯

【centos安裝源碼包nginx報錯】知识为进步之母,而进步又为富强之源泉。这篇文章主要讲述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"


    推荐阅读