Skip to content

Instantly share code, notes, and snippets.

@sonots
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonots/d6340a6c6f9891048c23 to your computer and use it in GitHub Desktop.
Save sonots/d6340a6c6f9891048c23 to your computer and use it in GitHub Desktop.
build openresty with pcre-jit (cf. https://gist.github.com/kazeburo/7921148)
cd /tmp
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
tar zxf pcre-8.36.tar.gz
wget http://openresty.org/download/ngx_openresty-1.7.4.1.tar.gz
tar zxf ngx_openresty-1.7.4.1.tar.gz
cd ngx_openresty-1.7.4.1
export PATH=/sbin:$PATH
# sudo yum install gcc-c++
./configure --with-luajit --prefix=/usr/local/openresty --with-http_gzip_static_module --with-pcre=/tmp/pcre-8.36 --with-pcre-jit
make
sudo make install
@sonots
Copy link
Author

sonots commented Oct 12, 2014

ulimit -n 65535
sudo /usr/local/openresty/nginx/sbin/nginx
sudo /usr/local/openresty/nginx/sbin/nginx -s stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment