OpenResty: How to install

I like Lua and I like Nginx then is normal to try OpenResty.

I will install in a Debian/Ubuntu system.

Prerequisites:

apt-get install build-essential libpcre3-dev libssl-dev

Get the source code from the download page:

wget https://openresty.org/download/openresty-VERSION.tar.gz
tar -xzvf openresty-VERSION.tar.gz
cd openresty-VERSION/
./configure -j2
make -j2
make install

Add this line to your ~/.bashrc or ~/.bash_profile file.

export PATH=/usr/local/openresty/bin:$PATH

Then execute:

openresty

And you could visit the page http://127.0.0.1 (the better place), and you will see this:

welcomepage

Published on in Systems