无法正常启动模板:找不到nginx.conf模板文件
发布时间
阅读量:
阅读量
故障现象描述
场景:
- 利用 nginx 和 consul 搭建具备自动发现功能且具备高可用特性的 Docker 服务框架
- 当在 consul 集群中引入 compose-template 以达成容器自动加入的目标时,会出现 template 无法正常启动的问题(需明确指定 template 模板文件及其生成路径)
[root@docker consul]# consul-template -consul-addr 192.168.126.16:8500 -template "/root/consul/nginx.ctmpl:/usr/local/nginx/conf/vhost/xcf.conf:/usr/local/nginx/sbin/nginx -s reload" --log-level=info
2021/03/27 14:15:37.803675 [INFO] consul-template v0.19.3 (ebf2d3d)
2021/03/27 14:15:37.803712 [INFO] (runner) creating new runner (dry: false, once: false)
2021/03/27 14:15:37.804468 [INFO] (runner) cre
全部评论 (0)
还没有任何评论哟~
