Linux下安装OpenResty
OpenResty安装前准备
- Centos:
yum install -y readline-devel pcre-devel openssl-devel gcc GeoIP-devel
- Debian|Ubuntu
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential libgeoip-dev
geoip-api-c
Home:https://github.com/maxmind/geoip-api-c
wget -c https://github.com/maxmind/geoip-api-c/releases/download/v1.6.12/GeoIP-1.6.12.tar.gz
tar -zxf GeoIP-1.6.12.tar.gz
cd GeoIP-1.6.12/
./configure
make && make install
OpenResty安装
wget https://openresty.org/download/openresty-1.15.8.1.tar.gz
tar -zxf openresty-1.15.8.1.tar.gz
cd openresty-1.15.8.1
./configure --prefix=/usr/local/openresty --with-luajit --with-pcre --with-http_gzip_static_module --with-http_realip_module --with-http_geoip_module --with-http_ssl_module --with-http_stub_status_module
make && make install
# /usr/local/openresty/bin/resty -V
resty 0.23
nginx version: openresty/1.15.8.1
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/25/install-openresty-under-linux/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
Linux下安装OpenResty
OpenResty安装前准备
Centos:
yum install -y readline-devel pcre-devel openssl-devel gcc GeoIP-devel
Debian|Ubuntu
apt-get install libreadline-d……
文章目录
关闭
共有 0 条评论