--sbin-path=/usr/sbin/nginx \ 二进制命令存放位置
--conf-path=/etc/nginx/nginx.conf \ 配置文件存放位置
--error-log-path=/var/log/nginx/error.log \ 错误日志存放位置
--http-log-path=/var/log/nginx/access.log \ 访问日志存放位置
--pid-path=/var/run/nginx/nginx.pid \ nginx的PID文件存放位置
--lock-path=/var/lock/nginx.lock \ nginx的锁文件
--user=nginx \ 运行nginx服务的用户
--group=nginx \ 运行nginx服务的组
--with-http_ssl_module \ 加载http_ssl_module模块
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--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/ \ --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx/scgi \
--with-pcre
#make
#make install
3.提供sysV风格的服务脚本
#vim nginx
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
# pidfile: /var/run/nginx.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network 中小企业web服务器的高可用集群方案设计(13):http://www.youerw.com/jisuanji/lunwen_2317.html