How to install OpenResty

How to install OpenResty

 

OpenResty, also called “ngx_openresty”, is a web application server based on the Nginx core, it also contains lot of 3rd party Nginx modules and most of its system dependencies. OpenResty is not an Nginx fork, it’s just a software bundle. It has been mostly maintained by Yichun Zhang�6�0 and since 2011 it has been supported by CloudFlare.

Why OpenResty?

According to it’s author, OpenResty allows developers to build high-performance web applications using Lua programming language to script existing Nginx C modules, ideal to support high traffic apps.

Install OpenResty

Software requirements

  • perl 5.6.1+
  • libreadline
  • libpcre
  • libssl

Linux systems: ensure that ldconfig is in your PATH environment.

For Debian and Ubuntu distributions:

apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make

For Fedora and RedHat distributions:

yum install readline-devel pcre-devel openssl-devel

For FreeBSD users

You need to install the following ports:

devel/gmake
security/openssl
devel/pcre

Download OpenResty

Go to http://openresty.org/ and get the lastest version. At this time, this is the last version:

wget http://openresty.org/download/ngx_openresty-1.5.8.1.tar.gz.

Untar, build and install OpenResty

tar xzvf ngx_openresty-1.5.8.1.tar.gz
cd ngx_openresty-1.5.8.1/
./configure --with-luajit
make
make install

Available configure options:

./configure --prefix=/opt/openresty 
--with-luajit 
--without-http_redis2_module 
--with-http_iconv_module 
--with-http_postgres_module 
-j2
--help to see more options

Need more information about OpenResty?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值