1:安装依赖包
yum install pcre-devel openssl-devel gcc curl postgresql-devel
安装完后ldconfig加载到环境变量
2.下载源文件并安装
wget https://openresty.org/download/openresty-1.13.6.2.tar.gz
解压后执行
./configure –with-luajit –without-http_redis2_module –with-http_iconv_module –with-http_postgres_module –with-pcre=/usr/local/pcre-8.42(我安装报找不到pcre,手动下载pcre源码,并指定目录)
gmake
gmake install