Created
April 14, 2013 12:21
-
-
Save 0xa/5382508 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/sh | |
| VERSION="1.2.3" | |
| cd nginx-$VERSION | |
| ./configure \ | |
| --prefix=/usr \ | |
| --sbin-path=/usr/sbin/nginx \ | |
| --conf-path=/etc/nginx/nginx.conf \ | |
| --error-log-path=/var/log/nginx/error.log \ | |
| --pid-path=/var/run/nginx/nginx.pid \ | |
| --lock-path=/var/lock/nginx.lock \ | |
| --user=www-data \ | |
| --group=www-data \ | |
| --with-ipv6 \ | |
| --with-http_ssl_module \ | |
| --with-http_flv_module \ | |
| --with-http_gzip_static_module \ | |
| --with-http_addition_module \ | |
| --with-http_secure_link_module \ | |
| --with-http_stub_status_module \ | |
| --http-log-path=/var/log/nginx/access.log \ | |
| --http-client-body-temp-path=/var/tmp/nginx/client/ \ | |
| --http-proxy-temp-path=/var/tmp/nginx/proxy/ \ | |
| --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \ | |
| --add-module=/root/nginx/agentzh-memc-nginx-module-a0bc33a \ | |
| --add-module=/root/nginx/echo-nginx-module \ | |
| --add-module=/root/nginx/substitutions4nginx-read-only \ | |
| --add-module=/root/nginx/vkholodkov-nginx-eval-module-125fa2e | |
| make | |
| checkinstall -y --provides=httpd | |
| dpkg --install nginx_$VERSION-1_amd64.deb | |
| killall nginx | |
| service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment