keepalived 非抢占模式 以及nginx状态监控
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,global_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin
千家信息网最后更新 2025年12月03日keepalived 非抢占模式 以及nginx状态监控
global_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 192.168.200.1 smtp_connect_timeout 30 router_id f6 vrrp_mcast_group4 224.0.0.20 nopreempt}vrrp_script chk_nginx {# script "killall -0 nginx" script "/etc/keepalived/check_nginx.sh" interval 2 weight -5 fall 3 rise 2}vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 58 priority 150 advert_int 1 nopreempt authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 172.21.10.199/24 dev eth0 label eth0:1 } track_script { chk_nginx }}[root@e7 ~]# cat /etc/keepalived/keepalived.conf ! Configuration File for keepalivedglobal_defs { notification_email { acassen@firewall.loc failover@firewall.loc sysadmin@firewall.loc } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 192.168.200.1 smtp_connect_timeout 30 router_id e7 vrrp_mcast_group4 224.0.0.20}vrrp_script chk_nginx {# script "killall -0 nginx" script "/etc/keepalived/check_nginx.sh" interval 2 weight -5 fall 3 rise 2}vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 58 priority 100 advert_int 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 172.21.10.199/24 dev eth0 label eth0:1 } track_script { chk_nginx }}[root@e7 ~]#[root@e7 ~]# cat /etc/keepalived/check_nginx.sh #!/bin/bashcounter=$(ps -C nginx --no-heading|wc -l)if [ "${counter}" = "0" ]; then /usr/sbin/nginx echo "nginx 1 start" sleep 2 counter=$(ps -C nginx --no-heading|wc -l) if [ "${counter}" = "0" ]; then echo "keepalived stop"# /etc/init.d/keepalived stopsystemctl stop keepalived fifi[root@e7 ~]#
模式
状态
监控
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全演讲心得体会怎么写
数据库10054错误代码
从外网访问路由器服务器
sql数据库 实例
网络安全法相关学习笔记
进入软件开发公司
荔枝网络技术
网络技术在智能建筑的应用
腾讯云数据库学生
服务器杀毒软件 免费
联想3550服务器管理口
怎样在命令中连接数据库
网络安全法实名年龄
电力企业网络安全应急演练
网络安全及信息化发展
网络安全保障工作总结报告
软件开发项目管理协作
芜湖小型工控机服务器
怎么查看服务器的网络地址
台州电脑软件开发需要学什么
网络安全措施的目标是什么
贵州采购管理软件开发公司
accra数据库是什么数据库
仙境传说ro3.1服务器
网络安全隐患排查整治讲话
网络安全问题方面的论文
安徽干部在线网络安全法
DB2数据库报错码
web服务器与数据库安全域
郸城朝弘互联网科技有限公司