安装版本为 1.9.7.5
openresty 安装教程-Centos
下载源码
wget https://openresty.org/download/openresty-1.9.7.5.tar.gz
解压源码
tar -zxvf openresty-1.9.7.5.tar.gz
编译源码
cd openresty-1.9.7.5/
./configure -j2
make -j2
sudo make install
三部执行完毕,依次应该是如下界面
安装位置为 /usr/local/openresty
运行NGINX
cd /usr/local/openresty/nginx/sbin
./nginx