Configuration file '/etc/keepalived/keepalived.conf' is not a regular non-executable file

Centos 7安装keepalived报错

 

报错如下

Dec 25 15:05:39 jituan-dsmydb141 systemd: Starting LVS and VRRP High Availability Monitor...
Dec 25 15:05:39 jituan-dsmydb141 Keepalived[30665]: Starting Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
Dec 25 15:05:39 jituan-dsmydb141 Keepalived[30665]: Configuration file '/etc/keepalived/keepalived.conf' is not a regular non-executable file
Dec 25 15:05:39 jituan-dsmydb141 Keepalived[30665]: Stopped Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
Dec 25 15:05:39 jituan-dsmydb141 systemd: PID file /var/run/keepalived.pid not readable (yet?) after start.
Dec 25 15:05:39 jituan-dsmydb141 systemd: Failed to start LVS and VRRP High Availability Monitor.
 

 

解决方式

查看keeplived权限

ll /etc/keepalived/
total 8
-rwxrwxr-x 1 root root 600 Dec 25 14:38 check_mysql.sh
-rwxrwxr-x 1 root root 645 Dec 25 14:46 keepalived.conf

 

更改为644权限即可

chmod 644 keepalived.conf
 ll keepalived.conf
-rw-r--r-- 1 root root 645 Dec 25 15:02 keepalived.conf

 

执行成功
 

  • 6
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值