1、查看MySQL启动次序
2、查看Keepalived启动次序
3、若Keepalived先于MySQL启动,则需要按照以下步骤设置二者启动顺序a.修改/etc/init.d/mysql
4、重新设置mysql开机自启