Skip to content

Instantly share code, notes, and snippets.

@github101
Created August 8, 2012 06:50
Show Gist options
  • Save github101/3292891 to your computer and use it in GitHub Desktop.
Save github101/3292891 to your computer and use it in GitHub Desktop.
Setup Tengine
$ wget http://tengine.taobao.org/download/tengine-1.3.0.tar.gz
$ wget http://download.savannah.gnu.org/releases/libunwind/libunwind-1.0.1.tar.gz
$ wget http://gperftools.googlecode.com/files/gperftools-2.0.tar.gz
$ tar zxvf libunwind-1.0.1.tar.gz && cd libunwind-1.0.1
$ CFLAGS=-fPIC ./configure
$ make CFLAGS=-fPIC
$ sudo make CFLAGS=-fPIC install
$ cd ..
$ tar zxvf gperftools-2.0.tar.gz
$ cd gperftools-2.0/
$ ./configure && make
$ sudo make install
$ sudo echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf
$ sudo cp /usr/local/lib/libtcmalloc.so /usr/lib64/libtcmalloc.so
$ sudo /sbin/ldconfig
$ git clone git://github.com/agentzh/redis2-nginx-module.git
$ sudo apt-get install liblua5.1-0-dev -y
$ sudo apt-get install libxml2-dev -y
$ sudo apt-get install libxslt-dev -y
$ sudo useradd www
$ tar zxvf tengine-1.3.0.tar.gz
$ cd tengine-1.3.0
$ ./configure --prefix=/data/server/tengine0-1.3.0 --user=www --group=www --with-rtsig_module --with-file-aio --with-ipv6 --with-syslog --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_slice_module --with-http_gzip_static_module --with-http_concat_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_sysguard_module --with-http_stub_status_module --with-http_upstream_check_module --with-http_lua_module --with-google_perftools_module --with-backtrace_module --with-pcre --add-module=../redis2-nginx-module --with-http_image_filter_module
$ make
$ sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment