1.下載openresty
http://openresty.org/cn/download.html
2.上傳解壓
rz -E
tar -xzvf openresty-{version}.tar.gz 其中version為下載的版本號
3.進入openresty目錄下,編譯安裝
cd openresty-{version}.tar.gz
./configure 此處可以先使用./configure --help 看下幫助 常用的配置有--prefix 指定路徑,--prefix=PATH set the installation prefix (default to /usr/local/openresty)
make 編譯
make install 安裝
編寫配置文件,搞定
詳細的openresty官網都有,僅簡單記錄下我搭建的操作。
