1. nginx -V 可以查看nginx有哪些模块
    2. configure arguments:
    3. --prefix=/etc/nginx #安装目录
    4. --sbin-path=/usr/sbin/nginx #执行文件目录
    5. --modules-path=/usr/lib64/nginx/modules #模块目录
    6. --conf-path=/etc/nginx/nginx.conf #主配置目录
    7. --error-log-path=/var/log/nginx/error.log #错误日志
    8. --http-log-path=/var/log/nginx/access.log #访问日志
    9. --pid-path=/var/run/nginx.pid #程序ID
    10. --lock-path=/var/run/nginx.lock #锁路径,防止重复启动nginx
    11. --http-client-body-temp-path=/var/cache/nginx/client_temp #缓存
    12. --http-proxy-temp-path=/var/cache/nginx/proxy_temp #代理缓存
    13. --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp #PHP缓存
    14. --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp #Python缓存
    15. --http-scgi-temp-path=/var/cache/nginx/scgi_temp
    16. --user=nginx #启动用户
    17. --group=nginx #组
    18. --with-compat #启动动态模块兼容性
    19. --with-file-aio #异步非阻塞模块,处理大量io和提高nginx处理效率
    20. --with-threads #多线程模块
    21. --with-http_addition_module #响应之前或之后追加文本内容
    22. --with-http_auth_request_module #认证模块
    23. --with-http_dav_module #让网站支持上传下载
    24. --with-http_flv_module #nginx添加MP4、flv视频支持模块
    25. --with-http_gunzip_module #压缩模块
    26. --with-http_gzip_static_module
    27. --with-http_mp4_module #多媒体模块
    28. --with-http_random_index_module #随机主页模块
    29. --with-http_realip_module #代理后nginx获取真实ip模块
    30. --with-http_secure_link_module #nginx安全下载模块
    31. --with-http_slice_module #nginx中文文档
    32. --with-http_ssl_module #安全模块
    33. --with-http_stub_status_module #访问状态
    34. --with-http_sub_module #nginx替换网站响应内容
    35. --with-http_v2_module
    36. --with-mail #邮件模块
    37. --with-mail_ssl_module
    38. --with-stream #负载均衡模块
    39. --with-stream_realip_module
    40. --with-stream_ssl_module
    41. --with-stream_ssl_preread_module
    42. CPU优化参数
    43. --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'