1.安裝依賴
1)yum install pcre-devel,?yum install ncurses-devel,?yum install readline-devel
2)下載 openresty包 wget?https://openresty.org/download/openresty-1.13.6.2.tar.gz
3) 解壓 tar zxvf openresty-1.13.62.tar.gz
4)進入到解壓后的目錄,配置
./configure --prefix=/app/openresty --with-http_realip_module --with-pcre --with-luajit
5)編譯安裝 make&make install