Can‘t open PID file /run/keepalived.pid (yet?) after start: No such file or directory
keepalived 使用 systemctl start keepalived 无法启动Can’t open PID file /run/keepalived.pid (yet?) after start: No such file or directory解决方案修改 /etc/keepalived/keepalived.conf 的用户执行权限在global_defs 添加script_us
·
keepalived 使用 systemctl start keepalived 无法启动
Can’t open PID file /run/keepalived.pid (yet?) after start: No such file or directory
解决方案
修改 /etc/keepalived/keepalived.conf 的用户执行权限
在global_defs 添加
script_user root
原因
官网解释
如果不指定 script_user 则使用keepalived_script用户
个人猜测是
keepalived_script用户没有 /run/目录访问权限
所以可以创建一个可以访问/run/目录权限的用户 如果不想创建则直接使用root账户
更多推荐
已为社区贡献1条内容
所有评论(0)