# cd /tmp/ # tar -xvf nginx-1.8.0.tar.gz # cd /nginx-1.8.0 # ./configure \ --prefix= /etc/nginx \ --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 .pid \ --lock-path= /var/run/nginx .lock \ --http-client-body-temp-path= /var/cache/nginx/client_temp \ --http-proxy-temp-path= /var/cache/nginx/proxy_temp \ --http-fastcgi-temp-path= /var/cache/nginx/fastcgi_temp \ --http-uwsgi-temp-path= /var/cache/nginx/uwsgi_temp \ --http-scgi-temp-path= /var/cache/nginx/scgi_temp \ --user=nginx \ --group=nginx \ --with-http_ssl_module \ --with-http_realip_module \ --with-http_addition_module \ --with-http_sub_module \ --with-http_dav_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_random_index_module \ --with-http_secure_link_module \ --with-http_stub_status_module \ --with-http_auth_request_module \ --with-mail \ --with-mail_ssl_module \ --with- file -aio \ --with-http_spdy_module \ --with-ipv6 Configuration summary + using system PCRE library + using system OpenSSL library + md5: using OpenSSL library + sha1: using OpenSSL library + using system zlib library nginx path prefix: "/etc/nginx" nginx binary file : "/usr/sbin/nginx" nginx configuration prefix: "/etc/nginx" nginx configuration file : "/etc/nginx/nginx.conf" nginx pid file : "/var/run/nginx.pid" nginx error log file : "/var/log/nginx/error.log" nginx http access log file : "/var/log/nginx/access.log" nginx http client request body temporary files: "/var/cache/nginx/client_temp" nginx http proxy temporary files: "/var/cache/nginx/proxy_temp" nginx http fastcgi temporary files: "/var/cache/nginx/fastcgi_temp" nginx http uwsgi temporary files: "/var/cache/nginx/uwsgi_temp" nginx http scgi temporary files: "/var/cache/nginx/scgi_temp" ###如果apache httpd服务启动,建议先停止或更改端口号 # service httpd stop # mkdir -p /var/cache/nginx/{client_temp,proxy_temp,fastcgi_temp,uwsgi_temp,scgi_temp} # make && make install ###启动nginx # /usr/sbin/nginx -c /etc/nginx/nginx.conf # ps -ef|grep nginx|grep -v grep root 33412 1 0 10:18 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx .conf nginx 33413 33412 0 10:18 ? 00:00:00 nginx: worker process [root@orasrv1 cache] # netstat -nltp|grep 80 tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 33412 /nginx [root@orasrv1 cache] # |