Centos7 Openresty 开发环境

首先要安装编译环境

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

  

从下载页 Download下载最新的 OpenResty® 源码包,将其解压:

tar -xzvf openresty-VERSION.tar.gz

 

然后

./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 

 

 然后

gmake
gmake install

  

上一篇:【原创】运维基础之OpenResty


下一篇:OpenResty 在又拍云容器平台中的应用