由于是内网的原因,不能直接使用yum install -y直接安装,一些安装包都需要自己手动安装,现记录如下。以下报错是在安装过程中,依次报错信息,然后一步一步进行解决。
执行
./configure --prefix=/usr/local/openresty
- pcre报错信息
./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=option. - 安装pcre:
wget https://netix.dl.sourceforge.net/project/pcre