Created
February 28, 2014 05:22
-
-
Save 046569/9265793 to your computer and use it in GitHub Desktop.
ssi.sh
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
#!/bin/bash | |
/usr/local/nginx/sbin/nginx -s stop | |
apt-get -y install gcc libpcre3-dev zlib1g-dev make | |
wget http://tengine.taobao.org/download/tengine-1.5.2.tar.gz | |
mv -f tengine-1.5.2.tar.gz /data/www | |
cd /data/www | |
tar xvzf tengine-1.5.2.tar.gz | |
cd tengine-1.5.2/ | |
sed -i '/CFLAGS="$CFLAGS -g"/d' auto/cc/gcc | |
./configure --with-http_gzip_static_module --with-http_sysguard_module --with-http_stub_status_module --with-http_realip_module --without-dso --without-http_ssl_module --without-http_auth_basic_module --without-http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_split_clients_module --without-http_split_clients_module --without-http_uwsgi_module --without-http_scgi_module --without-http_memcached_module --without-http_browser_module --without-http_upstream_check_module --without-http_upstream_ip_hash_module | |
make | |
make install | |
ln -sf /usr/local/nginx/sbin/nginx /bin | |
/usr/local/nginx/sbin/nginx -s start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment