四、nginx入门-Nginx模块
nginx编译参数
nginx -V 可以看nginx安装的一些模块,也叫编译参数
————————————————
configure arguments 配置参数./configure --help查询帮助
--prefix=/etc/nginx 安装路径
--sbin-path=/userr/sbin/nginx 程序文件
--modeules-path=/usr/lib64/nginx.conf 主配置文件
--conf-log-path=/var/log/nginx/nginx/error.log 错误日志
--http-log-path=/var/nginx/access.log 访问日志
--pid-path=/var/run/nginx.pid 程序id
--lock-path=/var/run/nignx.lock 锁路径,防止重复启动nginx
--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 php缓存
--http-uwsgi-temp-path=/var/cache/nginx/uwsgo_temp python缓存
--http-scgi-temp-path=/var/cache/nginx/scgi_temp 缓存
--with-compat 启动动态模组兼容性
--user=nginx 用户
--group=nginx 组
--with-file-aio 高并发,异步非阻塞特性的文件
--with-threads 多线程模块
--with-http_addition_module 相应追加模块
--with-auth_request_module 认证模块
--with-http_dav_module 上传下载模块
--with-http_flv_module 视频模块
--with-http_gunzip_module 压缩模块
--with-http_gzip_static_module 压缩模块
--with-http_mp4_module 多媒体模块
--with-http_random_index_module 随机主页模块
--with-http_realip_module nginx获取真是ip模块
--with-http_secure_link_module nginx安全下载模块
--with-http_slice_module nginx中文文档
--with-http_ssl_module 安全模块
--with-http_stub_status_module 分支状态模块,访问状态,可以看网站连接的信息
--with-http_sub_module nginx替换网站相应内容
--with-http_v2_module web2.0技术
--with-mail 邮件模块
--with-stream 反向代理模块
--with-stream_realip_module 反向代理模块
--with-stream_ssl_module 反向代理模块
--with-stream_ssl_realip_module 反向代理模块
--with-stream_ssl_preread_module 反向代理模块
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -pie' CPU优化参数
————————————————