openresty--安装,


1 简介

2安装

安装前准备
yum install readline-devel pcre-devel openssl-devel gcc -y

下载

wget  -P   /opt/openresty  https://openresty.org/download/openresty-1.9.7.4.tar.gz

openresty_home="/opt/openresty"
mkdir ${openresty_home}/access_logs/  
mkdir  ${openresty_home}/error_logs/
mkdir   ${openresty_home}/client_body_temp_path/
groupadd web  -g  3100 
useradd nginx -g 3100 -u 600

tar  -zxf   openresty-1.9.7.4.tar.gz
cd  openresty-1.9.7.4

./configure   --prefix=/opt/openresty     --with-http_iconv_module   --with-pcre    --with-luajit   --with-lua51       --user=nginx --group=web  --with-http_realip_module  --with-http_flv_module   --with-mail   --with-mail_ssl_module  

尝试configure  --with-http_postgres_module 这个报错依赖库没有找到 这个postgresql也没用过,到时候可以找下对应的依赖库

make   -j12


make install

相关内容

    暂无相关文章