请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册
搜索

本文来自

安全运维工具

安全运维工具

人已关注

请添加对本版块的简短描述

精选帖子

consul-template app.ctmpl permission denied报错解决方法

[复制链接]
1860 abc 发表于 2018-9-17 17:34:55
本帖最后由 abc 于 2018-9-17 17:57 编辑
  1. 2018/09/17 09:13:55.417832 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  2. 2018/09/17 09:13:56.417939 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  3. 2018/09/17 09:13:57.420727 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  4. 2018/09/17 09:13:58.421797 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  5. 2018/09/17 09:13:59.423841 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  6. 2018/09/17 09:14:00.425069 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
  7. 2018/09/17 09:14:01.436742 [ERR] (cli) error rendering "/etc/consul-template/templates/nginx/app.ctmpl" => "/etc/nginx/conf.d/default.conf": failed reading file: open /etc/nginx/conf.d/default.conf: permission denied
复制代码


判断以为是consul-template没有权限,即时给777权限还是报错,检查了用户组


d20180917172214.png

改为
nginx:x:101:nginx,consul-template

即可解决








回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表