安装OpenResty

下载包 openresty-1.13.6.2.tar.gz

chmod -R 777 openresty-1.13.6.2.tar.gz

tar -zxvf openresty-1.13.6.2.tar.gz

cd openresty-1.13.6.2/

安装OpenResty

预先安装   apt-get install libpcre3-dev \

                               libssl-dev perl make build-essential curl

./configure

make

make install

cd /usr/local 

安装OpenResty

 cd  /usr/local/openresty/nginx

sbin/nginx -c conf/nginx.conf

netstat -an | grep 80 ( 查看是否启动)