openresty 安裝教程(centos)

安裝版本爲 1.9.7.5

下載源碼

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

在這裏插入圖片描述

關注公衆號(學習更多 openresty 知識)

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章