安装所需依赖包
yum -y install readline-devel pcre-devel openssl-devel gcc perl curl
解压压缩包
tar zxvf openresty-1.11.2.5.tar.gz
进入文件夹
cd openresty-1.11.2.5
编译
./configure –prefix=/usr/local/openresty –with-luajit –without-http_redis2_module –with-http_iconv_module
编译&编译安装
gmake & gmake install