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
上一篇 CentOS下源码安装OpenSSL
下一篇 CentOS下安装Tomcat
目录
文章列表
1 disconf-web部署
disconf-web部署
2
React Native学习之调用原生方法的步骤
React Native学习之调用原生方法的步骤
3
Java实现将数字金额转为大写中文金额
Java实现将数字金额转为大写中文金额
4
kubernetes-dashboard卸载及其pod删除
kubernetes-dashboard卸载及其pod删除
5
Spring Boot 发布回滚
Spring Boot 发布回滚
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。