Centos7 Openresty 開發環境

首先要安裝編譯環境html

yum group install "Development Tools"
 yum install pcre-devel openssl-devel gcc curl postgresql-devel geoip-devel

  

從下載頁 Download下載最新的 OpenResty® 源碼包,將其解壓:redis

tar -xzvf openresty-VERSION.tar.gz

 

而後sql

./configure --prefix=/opt/openresty \
            --with-luajit \
            --without-http_redis2_module \
            --with-http_iconv_module \
            --with-http_postgres_module  \
            --with-stream  \
            --with-stream=dynamic     \
            --with-stream_ssl_module        \
            --with-stream_realip_module     \
            --with-stream_geoip_module    \
            --with-stream_geoip_module=dynamic  \
            --with-stream_ssl_preread_module 

 

 而後curl

gmake
gmake install
相關文章
相關標籤/搜索