Keepalived+Nginx+Tomcat高可用(主从切换)以及灾难恢(2)

在来看下,灾难恢复的脚本:
/usr/local/keepalived/sbin/notify.sh

#!/bin/bash case "$1" in master) . /etc/profile;/usr/local/tomcat/apache-tomcat-7.0.68/bin/catalina.sh start /usr/local/nginx/sbin/nginx exit 0 ;; backup) . /etc/profile;/usr/local/tomcat/apache-tomcat-7.0.68/bin/catalina.sh start /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx exit 0 ;; fault) /usr/local/nginx/sbin/nginx -s stop exit 0 ;; *) echo 'Usage:notify.sh{master|backup|fault}' exit 1 ;; esac

Linux下HAProxy+Keepalived双机高可用方案 

Haproxy+Keepalived搭建Weblogic高可用负载均衡集群

Keepalived+HAProxy配置高可用负载均衡

CentOS 6.3下Haproxy+Keepalived+Apache配置笔记

Haproxy + KeepAlived 实现WEB群集 on CentOS 6

Haproxy+Keepalived构建高可用负载均衡

《Keepalived权威指南》下载见

Nginx+Keepalived实现站点高可用 

Nginx+Keepalived实现站点高可用(负载均衡) 

CentOS6.5下 Keepalived高可用服务单实例配置 

配置文件keepalived.conf详解

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/09ff0a12a2160848ece255fc62e7a08a.html