Keepalive启动报错,Fail to start LVS and VRRP High Availability Monitor.

输入:systemctl status keepalived,显示信息如下:

[root@m2 keepalived]# service keepalived status
Redirecting to /bin/systemctl status keepalived.service
● keepalived.service - LVS and VRRP High Availability Monitor
Loaded: loaded (/usr/lib/systemd/system/keepalived.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since 日 2022-07-24 22:10:26 CST; 7s ago
Process: 22871 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 22715 (code=exited, status=0/SUCCESS)
7月 24 22:10:26 m2 systemd[1]: Starting LVS and VRRP High Availability Monitor...
7月 24 22:10:26 m2 Keepalived[22871]: Starting Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
7月 24 22:10:26 m2 Keepalived[22871]: Configuration file '/etc/keepalived/keepalived.conf' is not a regular non-executable file
7月 24 22:10:26 m2 Keepalived[22871]: Stopped Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2
7月 24 22:10:26 m2 systemd[1]: Can't open PID file /var/run/keepalived.pid (yet?) after start: No such file or directory
7月 24 22:10:26 m2 systemd[1]: Failed to start LVS and VRRP High Availability Monitor.
7月 24 22:10:26 m2 systemd[1]: Unit keepalived.service entered failed state.
7月 24 22:10:26 m2 systemd[1]: keepalived.service failed.

# 解决办法:chmod 644 keepalived.conf
[root@m2 keepalived]# chmod 644 keepalived.conf

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐