网站fail_over测试(障害测试)
确认Web和DB进行操作:
一:确认web:
①确认进程是否存在:
ps aux|grep tomcat
②关闭tomcat:
/etc/init.d/catalina_sbi stop
③重启tomcat:
/etc/init.d/catalina_sbi start
二:确认DB:
①:确认进程是否存在:
ps aux|grep mysql
②:关闭MySQL:
/etc/init.d/mysqld stop
③:重启tomcat
/etc/init.d/mysqld start
1