An error occurred during:
Linux terminal running nginx configuration information: (after running, it is found that the last line needs to be modified)
./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/fastdfs/fastdfs-nginx-module-1.22/src
Therefore, after modifying the last line and running again, the contents shown in the error report appear
(modify last line)
./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/software/fastdfs/fastdfs-nginx-module-1.22/src
Specific error reporting:
Text content of error report:
./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.
Error content analysis:
The reason is that the PCRE package is not installed and you are not allowed to rewrite the previously configured content,
terms of settlement:
Run the following installation commands in Linux:
yum -y install pcre-devel
After installation, run your modified configuration information again
./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/software/fastdfs/fastdfs-nginx-module-1.22/src
what you think?
ginseng https://www.cnblogs.com/tudou1179006580/p/14875457.html
ginseng https://blog.csdn.net/yuntiank/article/details/8548147?locationNum=12
ginseng https://www.huaweicloud.com/articles/13235540.html
Read More:
- objs/addon/ngx_http_proxy_connect_module-master/ngx_http_proxy_connect_module.o] Error 1
- Configure HTTPS and self signed certificate for nginx
- Nginx manager jupyter notebook v1.0.0 http websocket
- Nginx installation in MAC
- Nginx reverse proxy MySQL
- Nginx startup error: nginx: [error] open() “/ var / run / nginx/ nginx.pid The solution of “failed (2: no such file or directory)”
- Nginx error: nginx: [error] invalid PID number “” in “/run/nginx.pid”
- Nginx Error:HTTP 1.0 client does not support chunked response
- Vs2015 configuring OpenGL development environment: configuration of glfw library and glad Library
- Nginx error log (error_ Log) configuration and information explanation
- nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory)
- nginx: [error] open() “/usr/local/nginx/logs/nginx.pid“ failed (2: No such file or directory)
- An Ajax HTTP error occurred in drupal7 installation occurred.HTTP Result Code
- An error occurs when cartopy library uses the coastlines() command
- To solve the problem of nginx accessing PHP file into download
- Record a front end error net:: err_ HTTP2_ PROTOCOL_ ERROR 200
- Implementation of HTTPS file server based on nginx in win2012
- Configuring glfw library and glad Library in opengl-vs2015
- nginx: [emerg] unknown directive “proxy_pass“
- Nginx upload error 413 request entity too large