Last active
August 29, 2015 14:07
-
-
Save sonots/d6340a6c6f9891048c23 to your computer and use it in GitHub Desktop.
build openresty with pcre-jit (cf. https://gist.github.com/kazeburo/7921148)
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
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 |
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
https://github.com/kazeburo/isucon3qualifier-myhack/blob/master/conf/nginx.conf