nichng 2020-09-11 22:00 采纳率: 0%
浏览 910

haproxy启动失败,报错 vunknown keyword 'fail'. Registered keywords :[ ALL] id <arg>

haproxy启动失败,报错。
Haproxy.cfg文件的截图如下
图片说明

systemctl status haproxy.service显示如下
haproxy.service - SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments.
Loaded: loaded (/etc/rc.d/init.d/haproxy; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since 五 2020-09-11 21:49:48 CST; 16s ago
Docs: man:systemd-sysv-generator(8)
Process: 4179 ExecStart=/etc/rc.d/init.d/haproxy start (code=exited, status=1/FAILURE)

9月 11 21:49:48 k8s-master haproxy[4179]: [ALERT] 254/214948 (4183) : parsing [/etc/haproxy/haproxy.cfg:77] : 'server inst1' unknown keyword 'fail'. Registered keywords :[ ALL] id
9月 11 21:49:48 k8s-master haproxy[4179]: [ALERT] 254/214948 (4183) : parsing [/etc/haproxy/haproxy.cfg:78] : 'server inst2' unknown keyword 'fail'.
9月 11 21:49:48 k8s-master haproxy[4179]: [ALERT] 254/214948 (4183) : parsing [/etc/haproxy/haproxy.cfg:85] : error opening file for custom error message .
9月 11 21:49:48 k8s-master haproxy[4179]: [ALERT] 254/214948 (4183) : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg
9月 11 21:49:48 k8s-master haproxy[4179]: [ALERT] 254/214948 (4183) : Fatal errors found in configuration.
9月 11 21:49:48 k8s-master systemd[1]: haproxy.service: control process exited, code=exited status=1
9月 11 21:49:48 k8s-master haproxy[4179]: Errors found in configuration file, check it with 'haproxy check'.
9月 11 21:49:48 k8s-master systemd[1]: Failed to start SYSV: HA-Proxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments..
9月 11 21:49:48 k8s-master systemd[1]: Unit haproxy.service entered failed state.
9月 11 21:49:48 k8s-master systemd[1]: haproxy.service failed.

后来尝试把 红框中两个inst换成相应主机主机名,还是不行,报同样的错误

  • 写回答

1条回答 默认 最新

  • zqbnqsdsmd 2020-09-12 09:55
    关注
    评论

报告相同问题?

悬赏问题

  • ¥30 python密码表示
  • ¥15 Flask应用部署到阿里云服务器失败,无法访问网页,问题出在哪里?
  • ¥15 计算个体的IBS遗传距离
  • ¥15 有什么好的直流步进减速电机42的厂家推荐,保持力矩达到0.3N.M
  • ¥15 一道蓝桥杯的题,请问我错在哪里
  • ¥15 关于#android问题,xposed模块找不到so
  • ¥15 UE5.4.2创建C++项目成功,但是编译失败
  • ¥15 华为手机备份nas,airdisk,遇到的空间不足问题。求个详细的解决方案。
  • ¥20 Cknife无法使用
  • ¥15 这个结构体为什么会出错呢?