【发布时间】:2016-05-20 23:52:50
【问题描述】:
尝试设置配置文件。 Ubuntu 14.04.3 LTS。用户根。
nginx -s quit
nginx -c /home/webapps/confs/nginx.conf
nginx -V
...--conf-path=/etc/nginx/nginx.conf...
nginx -s quit
nginx -c /home/webapps/confs/nginx.conf -t
nginx:配置文件/home/webapps/confs/nginx.conf 语法没问题
nginx:配置文件/home/webapps/confs/nginx.conf 测试是 成功
nginx -V
...--conf-path=/etc/nginx/nginx.conf...
我做错了什么?
【问题讨论】:
-
据我所知,您无法覆盖配置路径的默认位置,但如果这是您的意图,则需要将其传入。 “-V”的调用是独立的实例
-
谢谢。这就是答案。
标签: nginx