Skip to content

Instantly share code, notes, and snippets.

@kuno
Last active December 31, 2015 17:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kuno/8019827 to your computer and use it in GitHub Desktop.
Save kuno/8019827 to your computer and use it in GitHub Desktop.
Dowloading, building, installing openresty from source
#!/bin/bash
VERSION=1.4.3.9
echo '[CMD] Install dependencies'
sudo apt-get install -y libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make
echo '[CMD] Downlaod openresty'
wget http://openresty.org/download/ngx_openresty-${VERSION}.tar.gz
echo '[CMD] Build openresty'
tar xzvf ngx_openresty-${VERSION}.tar.gz
cd ngx_openresty-${VERSION}/
./configure --with-luajit
make
echo '[CMD] Install openresty'
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment