由于是内网的原因,不能直接使用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/pcre

本文详细记录了在内网环境下,由于无法直接使用yum安装openresty,如何手动下载pcre和openssl源码,配置并解决依赖问题,最终成功安装openresty的过程。
最低0.47元/天 解锁文章
2000

被折叠的 条评论
为什么被折叠?



