Last active
December 31, 2015 17:19
-
-
Save kuno/8019827 to your computer and use it in GitHub Desktop.
Dowloading, building, installing openresty from source
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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