开源软件名称:jeepalived
开源软件地址:https://gitee.com/rpgmakervx/jeepalived
开源软件介绍:
jeepaliveda middleware to monitor server's life built by java (like keepalived)#How to run jeepalived##startup shelljeepalived's run mode is divied into two types.you can use./startup send to start a send mode,or./startup rec to start a receive mode##how to configconfig file is conf/config.properties###send模式指定的主机iptarget_host=127.0.0.1###rec模式 启动的端口号receive_port=9524###send模式 指定的接收端的端口号send_to_port=9500###设置send模式下,0发送给远程jeepalived,1发送给本地jeepalivedsend_to=0###读心跳等待时间read_second=2###写心跳等待时间write_second=1###读写心跳等待时间read_write_second=3###接收端最大未接收到ping的次数max_unrec_ping_times=3###发送段最大未接收到pong的次数max_unrec_pong_times=3###发送端断线重连的时间间隔reconnect_second=3###设置发送端(从节点)的IP地址set_slave_ip=sudo ifconfig eth0 192.168.1.102###设置接收端(主节点)的IP地址set_master_ip=sudo ifconfig eth0 192.168.1.102###关闭网络shutdown_network=sudo service network stop###启动网络startup_network=sudo service network start |
请发表评论