How to
Install
OpenrestyJanuary, 6:18 am
Openresty, also called "Ngx_openresty", is a Web application server based on the Nginx core, it also con The tains lot of the 3rd party Nginx modules and the most of its system dependencies. openresty is a Nginx fork, it ' s just a software bundle. It had been mostly maintained by Yichun Zhang?6?0 and since it had been supported by CloudFlare.
Why openresty?
According to it's author, Openresty allows developers to build high-performance Web applications using Lua progra Mming 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 are in your PATH environment.
For Debian and Ubuntu distributions:
Install libreadline-dev libncurses5-dev libpcre3-dev Libssl-dev Perl make
For Fedora and RedHat distributions:
Install readline-devel pcre-devel openssl-devel
For FreeBSD users
Need to install the following ports:
Devel/gmakesecurity/openssldevel/pcre
Download openresty
Go to http:/openresty. Org/and get the lastest version. At this time, 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.gzcd ngx_openrestyInstall
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?
How to install Openresty