Skip to content

Instantly share code, notes, and snippets.

@ruo91
Last active December 31, 2015 22:19
Show Gist options
  • Save ruo91/8052645 to your computer and use it in GitHub Desktop.
Save ruo91/8052645 to your computer and use it in GitHub Desktop.
Ubuntu 12.04 - OpenResty Install Shell Script
#!/bin/sh
# Openresty Prefix
prefix=/usr/local/openresty
# Ubuntu 12.04
# Need Packege
sudo apt-get install -y \
build-essential libreadline6-dev ncurses-dev libpcre++-dev \
libssl-dev libgeoip-dev libxml2-dev libxslt-dev libgd2-xpm-dev \
# configure
./configure --prefix=$prefix \
--with-http_iconv_module \
--user=www-data \
--group=www-data \
--with-file-aio \
--with-ipv6 \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module \
--with-http_image_filter_module \
--with-http_geoip_module \
--with-http_sub_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_gzip_static_module \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-perl=`which perl` \
--http-log-path=$prefix/nginx/logs/nginx-access.log \
--http-client-body-temp-path=$prefix/tmp/client \
--http-proxy-temp-path=$prefix/tmp/proxy \
--http-fastcgi-temp-path=$prefix/tmp/fastcgi \
--with-pcre --with-pcre-jit --with-md5-asm --with-sha1-asm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment