wget https://openresty.org/download/openresty-1.17.8.1.tar.gz
tar -xzvf openresty-1.17.8.1.tar.gz
mv openresty-1.17.8.1 openresty
yum install -y libpcre3-dev libssl-dev perl make build-essential curl pcre-devel openssl-devel gcc gcc-c++ openssl openssl-devel postgresql-devel
./configure --prefix=/usr/local/openresty --with-luajit --without-http_redis2_module --with-http_iconv_module --with-http_postgres_module --with-http_sub_module --with-http_ssl_module --with-http_stub_status_module
make && make install
启动openresty
/usr/local/openresty/nginx/sbin/nginx
/usr/local/openresty/nginx/sbin/nginx -t
/usr/local/openresty/nginx/sbin/nginx -s reload