启动keepalived 报错

启动keepalived 报错

查看日志

tail  -fn 200  /var/log/messages 

SECURITY VIOLATION - scripts are being executed but script_security not enabled

 

在global_defs配置中添加: enable_script_security

global_defs {
router_id lb-master
enable_script_security
}

Keepalived报错 default user does not exist 。。

WARNING - default user 'keepalived_script' for script execution does not exist - please create.

解决办法: 配置文件添加运行健康检查脚本的用户或者组即可


global_defs {
  router_id k8s

#添加内容如下:
  script_user root
  enable_script_security

}

 

启动Nginx出现如下错误:

 

open() "/run/nginx.pid" failed (2: No such file or directory)

 

[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

一般原因是nginx端口被占用了

解决方法一

ps -ef|grep nginx
kill pad

解决方法二

切换到nginx sbin目录

-- 停止
sudo ./nginx -s stop
-- 启动
./nginx

原文链接:https://blog.csdn.net/qq_39313596/article/details/115858965

posted @ 2021-10-28 09:33  石门  阅读(1347)  评论(0编辑  收藏  举报