安装依赖
yum install pcre-devel openssl-devel gcc curl
构建OpenResty
从下载页 Download下载最新的 OpenResty® 源码包,并且像下面的示例一样将其解压:
tar -xzvf openresty-VERSION.tar.gz
./configure
./configure --prefix=/usr/local/openresty
gmake
gmake&&gmake install
运行
cd /usr/local/openresty/nginx/sbin
./nginx