環境準備
1、安裝perl工程
yum install -y perl
2、安裝gcc、gcc-c++
3、下載openssl、zlib、pcre源碼
具體下載方法可以去官網下載
源碼安裝
1、下載openresty源碼
2、進入到openresty,按順序執行命令
./configure --prefix=openresty安裝路徑 \
--with-luajit
--without-http_redis2_module \
--with-http_iconv_module \
--with-pcre=pcre源碼路徑 \
--with-zlib=zlib源碼路徑 \
--with-openssl=openssl源碼路徑
make && make install