keepalived报错
Mar 26 11:37:09 localhost.localdomain Keepalived_vrrp[4587]: WARNING -
default user ‘keepalived_script’ for script execution does not exist -
please create. Mar 26 11:37:09 localhost.localdomain
Keepalived_vrrp[4587]: SECURITY VIOLATION - scripts are being executed
but script_security not enabled.
解决办法:在global_defs 加入以下两行,然后重启keepalived
在配置文件中添加运行健康检查脚本的用户或者组
global_defs {
script_user root
enable_script_security
}