Skip to content

Instantly share code, notes, and snippets.

@ejlp12
Last active May 29, 2023 01:59
Show Gist options
  • Save ejlp12/6d05dc2d76efe70622198b174ae1ff19 to your computer and use it in GitHub Desktop.
Save ejlp12/6d05dc2d76efe70622198b174ae1ff19 to your computer and use it in GitHub Desktop.
Install openresty in Mac OS-X

Install 3scale self managed API gateway (openresty) in Mac OS-X

brew update
brew install pcre openssl

wget http://openresty.org/download/ngx_openresty-1.9.7.2.tar.gz
tar xzvf ngx_openresty-1.9.7.2.tar.gz
cd ngx_openresty-1.9.7.2

./configure \
   --with-cc-opt="-I/usr/local/opt/openssl/include/ -I/usr/local/opt/pcre/include/" \
   --with-ld-opt="-L/usr/local/opt/openssl/lib/ -L/usr/local/opt/pcre/lib/" \
   -j8
 make
 make install
 export PATH=/usr/local/openresty/bin:/usr/local/openresty/nginx/sbin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment