Openresty的簡單安裝方法,如需高級編譯安裝,請參照安裝選項html
yum install pcre-devel openssl-devel gc-c++
*這裏沒有選擇安裝最新版本* wget http://openresty.org/download/ngx_openresty-1.7.4.1.tar.gz tar -xvf ngx_openresty-1.7.4.1.tar.gz cd ngx_openresty-1.7.4.1 ./configure make && make install
若是沒有報錯,就應該沒問題,默認安裝路徑以下/usr/local/openresty/
路徑中,路徑內容以下:nginx
drwxr-xr-x 2 root root 4096 Jan 8 17:10 bin drwxr-xr-x 6 root root 4096 Jan 8 17:10 luajit drwxr-xr-x 5 root root 4096 Jan 8 17:10 lualib drwxr-xr-x 6 root root 4096 Jan 8 17:10 nginx
安裝選項參照http://www.3mc2.com/nginx-install-options-wiki.htmlc++