安裝版本爲 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