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 pkcs1与pkcs8格式RSA私钥互相转换
pkcs1与pkcs8格式RSA私钥互相转换
2
CSS设置背景图片自适应屏幕
CSS设置背景图片自适应屏幕
3
Android - Walle(新一代多渠道打包工具)
Android - Walle(新一代多渠道打包工具)
4
Spring Boot接收并响应xml
Spring Boot接收并响应xml
5
Spring Boot集成XStream转换器:处理xml节点中既有属性又有值
Spring Boot集成XStream转换器:处理xml节点中既有属性又有值
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。