centos下 keepalived1.2.8配置文件
生活随笔
收集整理的這篇文章主要介紹了
centos下 keepalived1.2.8配置文件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、軟件配置文件
vrrp_script chk_http_port { script "/etc/keepalived/nginx_pid.sh" interval 2 weight 2 } global_defs {notification_email {308616473@qq.com}notification_email_from lizhuan@cdxfuture.comsmtp_server smtp.exmail.qq.comsmtp_connect_timeout 30router_id LVS_Twioo } vrrp_instance VI_1 {state BACKUPinterface eth0virtual_router_id 51mcast_src_ip 192.168.2.251priority 80advert_int 1smtp_alertauthentication {auth_type PASSauth_pass 123456 } virtual_ipaddress {192.168.2.88} track_script {chk_http_port }}virtual_server 192.168.2.88 80 {delay_loop 6lb_algo rrlb_kind DRpersistence_timeout 5protocol TCPreal_server 192.168.2.251 80 {weight 3TCP_CHECK {connect_timeout 10nb_get_retry 3delay_before_retry 3connect_port 80}}real_server 192.168.2.80 80 {weight 3TCP_CHECK {connect_timeout 3nb_get_retry 3delay_before_retry 3connect_port 80}} }二、檢測nginx是否正常檢測文件
轉載于:https://blog.51cto.com/lizhuan/1315136
總結
以上是生活随笔為你收集整理的centos下 keepalived1.2.8配置文件的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Tomcat -- Cannot cre
- 下一篇: sscanf函数中类型不匹配警告引发的B