gpt4 book ai didi

node.js - 找不到 vrrp_instance VI_1 的接口(interface) eth0

转载 作者:搜寻专家 更新时间:2023-11-01 00:04:13 26 4
gpt4 key购买 nike

目前,我正在尝试在我的机器上使用NGINX 运行KEEPALIVED。我的用例包括监控 NGINX 服务器的故障转移行为,因为任何一个实例都可能出现故障,我需要让其他实例处于事件状态才能为传入请求提供服务。

下面是我的keepalived.conf文件,

vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 100
track_script {
chk_http_port
}
virtual_ipaddress {
10.100.160.143
}
}

vrrp_script chk_http_port {
script "pidof nginx"
interval 2

}

下面是我在 /var/logs/messages 位置遇到的错误

Keepalived_vrrp[33045]: Cant find interface eth0 for vrrp_instance VI_1 !!!
Keepalived_vrrp[33045]: chk_http_port no match, ignoring...
Keepalived_vrrp[33045]: Default interface eth0 does not exist and no interface specified. Skipping static address 10.100.160.143.
Keepalived_vrrp[33045]: WARNING - default user 'keepalived_script' for script execution does not exist - please create.
Keepalived_vrrp[33045]: VRRP_Instance(VI_1) Unknown interface !
Keepalived_vrrp[33045]: Stopped
Keepalived[33042]: Keepalived_vrrp exited with permanent error CONFIG. Terminating
Keepalived[33042]: Stopping
Keepalived_healthcheckers[33044]: Stopped
Keepalived[33042]: Stopped Keepalived v1.3.5 (03/19,2017), git commit v1.3.5-6-g6fa32f2

最佳答案

您可能需要检查网络接口(interface)的名称。使用 ifconfig 列出所有网络接口(interface),并查找“eth0”。如果你的机器上不存在 'eth0',那么你需要在你的 keepalived.conf 中指定一个现有接口(interface)的名称

关于node.js - 找不到 vrrp_instance VI_1 的接口(interface) eth0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50744128/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com