一、问题解决
1、nginx - library ... not found
在安装过程中可能会遇到下面的问题
checking for PCRE2 library ... not found
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found
checking for PCRE library in /opt/homebrew/ ... not found
./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.
执行下面命令后安装即可(Ubuntu),然后再执行一遍 ./configure —xxxxxxxxxxxxxxxxxxxxxx
sudo apt update
sudo apt install libpcre3 libpcre3-dev libpc