参考资料

  1. Nginx负载均衡模块详细说明以及案例
  2. 检测Nginx配置文件 nginx -t
  3. nginx 配置域名
  4. Nginx有哪些安全相关的模块?
  5. nginx 配置https
  6. NginxDocker容器化配置详细说明以及案例
  7. Nginx负载均衡策略详解
  8. NginxMemcached缓存模块详细说明以及案例

查看nginx 设置配置文件路径方法

  1. 使用 nginx -t 命令测试配置文件并显示路径。

  2. 使用 nginx -V 命令查看编译参数,其中包含配置文件路径。

  3. 默认路径通常为 /etc/nginx/nginx.conf/usr/local/nginx/conf/nginx.conf