PID file /var/run/keepalived.pid not readable (yet?) after start.
keepalive重启服务器报错如下:
#systemctl status keepalived ● keepalived.service - LVS and VRRP High Availability Monitor Loaded: loaded (/usr/lib/systemd/system/keepalived.service; disabled; vendor preset: disabled) Active: failed (Result: resources) since Wed 2021-05-26 02:10:50 EDT; 23s ago Process: 2760 ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS (code=exited, status=0/SUCCESS) May 26 02:10:50 ka1 systemd[1]: Starting LVS and VRRP High Availability Monitor... May 26 02:10:50 ka1 systemd[1]: PID file /var/run/keepalived.pid not readable (yet?) after start. May 26 02:10:50 ka1 systemd[1]: Failed to start LVS and VRRP High Availability Monitor. May 26 02:10:50 ka1 systemd[1]: Unit keepalived.service entered failed state. May 26 02:10:50 ka1 systemd[1]: keepalived.service failed.
我这是因为keepalived的配置文件错误的添加了执行权限,导致无法启动,去掉执行权限就行
chmod -x keepalived.conf
也有可能是进程没关闭,尝试杀进程试试看
pkill keepalived
-------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------- 博客均为个人笔记,无所追求,仅供参考~~~ QQ--2382990774