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

  

posted on 2019-04-24 09:30  Maintell  阅读(160)  评论(0编辑  收藏  举报

导航