编译nginx时,编译参数注意点
2015-10-10 16:11
543 查看
--prefix=/usr/local/nginx-1.3.1 有利于统一放置nginx的所有文件,方便管理,强烈建议设置
--with-http_stub_status_module 支持统计,也有利于监控系统用来监控nginx的性能
--with-http_ssl_module 支持ssl加密
--with-pcre=/xx/pcre-xx 必要条件
ngx_cache_purge-2.1 设置页面缓存策略
nginx官文档中二进制包安装时,默认的参数
--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
--with-http_stub_status_module 支持统计,也有利于监控系统用来监控nginx的性能
--with-http_ssl_module 支持ssl加密
--with-pcre=/xx/pcre-xx 必要条件
ngx_cache_purge-2.1 设置页面缓存策略
nginx官文档中二进制包安装时,默认的参数
--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
相关文章推荐
- Nginx+Keepalived实现
- nginx无法启动: libpcre.so.1/libpcre.so.0: cannot open shared object file解决办法
- nginx proxy超时报错 upstream timed out (110: Connec...
- linux/centos安装nginx常见错误及解决办法【make错误,需要yum -y install openssl openssl-devel或者自己下载然后重新./configure】
- mysql php nginx
- nginx安装-del
- nginx 配置虚拟主机
- 【Nginx探究系列二】Nginx配置篇之客户Nginx白名单访问配置
- 为你的网站开启 gzip 压缩功能(nodejs、nginx)
- nginx 反向跳转
- NGINX 安装&配置
- 解决Nginx的connect() to 127.0.0.1:8080 failed (13: Permission denied) while connect
- centos 6.5 配置nginx环境
- window系统中利用dos 重启 nginx
- nginx设置代理配置
- nginx详解
- ubuntu下安装nginx
- How to Install Laravel with an Nginx Web Server on Ubuntu 14.04(Composer,laravel,nginx)
- nginx图片缓存和防盗链
- nginx伪静态rewrite规则写法实例