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

 

执行成功
 

你可能感兴趣的:(linux)