openresty编译教程
2022-06-07 23:18:40    111    0    0
admin
wget https://openresty.org/download/openresty-1.21.4.1.tar.gz
tar -zxvf openresty-1.21.4.1.tar.gz
cd openresty-1.21.4.1

yum install -y gcc-c++ gcc pcre pcre-devel perl perl-devel openssl openssl-devel;
export OPENRESTY_HOME=/data/app/openresty
./configure --prefix=${OPENRESTY_HOME} --with-cc-opt=-O2 --sbin-path=${OPENRESTY_HOME}/sbin/nginx --conf-path=${OPENRESTY_HOME}/conf/nginx.conf --error-log-path=${OPENRESTY_HOME}/logs/error.log --http-log-path=${OPENRESTY_HOME}/logs/access.log --http-client-body-temp-path=${OPENRESTY_HOME}/cache/client_body --http-proxy-temp-path=${OPENRESTY_HOME}/cache/proxy --http-fastcgi-temp-path=${OPENRESTY_HOME}/cache/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-pcre --with-stream --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module

make ; make install

mkdir -p ${OPENRESTY_HOME}/cache/client_body

 

Pre: No Post

Next: No Post

111
Sign in to leave a comment.
No Leanote account? Sign up now.
0 comments
Table of content