Skip to content

Instantly share code, notes, and snippets.

@luxixing
Created July 26, 2013 11:07
Show Gist options
  • Save luxixing/6088077 to your computer and use it in GitHub Desktop.
Save luxixing/6088077 to your computer and use it in GitHub Desktop.
nginx 编译安装选项 google 的工具单独安装
./configure --prefix=/usr/local\
--conf-path=/usr/local/etc/nginx/\
--user=nginx\
--group=www\
--with-http_ssl_module\
--with-http_realip_module\
--with-http_gunzip_module\
--with-google_perftools_module
#ubuntu 2013-09-06
./configure --prefix=/usr/local\
--sbin-path=/usr/local/sbin\
--conf-path=/usr/local/etc/nginx/nginx.conf\
--http-log-path=/usr/local/logs/nginx/http.log\
--error-log-path=/usr/local/logs/nginx/error.log\
--pid-path=/usr/local/var/run/nginx.pid\
--lock-path=/usr/loal/var/lock/nginx\
--http-proxy-temp-path=/usr/local/logs/nginx/proxy-temp\
--http-fastcgi-temp-path=/usr/local/logs/nginx/fastcgi-temp\
--http-uwsgi-temp-path=/usr/local/logs/nginx/uwsgi-temp\
--http-scgi-temp-path=/usr/local/logs/nginx/scgi-temp\
--http-client-body-temp-path=/usr/local/logs/nginx/client-body-temp\
--user=nginx\
--group=nginx\
--with-http_ssl_module\
--with-http_sub_module\
--with-http_gunzip_module\
--with-http_gzip_static_module\
--with-http_random_index_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment