Keepalived+Nginx提供前端负载均衡+主从双机热备+自动切换 aries 发表于 2016-11-18 分类于 杂七杂八 1861 次浏览 标签 : KeepalivedNginx双机热备 采用两台Nginx服务器作为前端,提供静态web内容,分发web请求,一主一从,Keepalived实现状态监测,保证Nginx正常对外提供服务,即主Nginx服务进程死掉之后,keepalived能够通过脚本或者程序检测机制,将网站的访问切换到从Nginx上来。后端的web应用服务器的监控由Nginx负责,keepalived只监控Nginx的健康状况。
高可用的mysql 基于 master-master 的双机热备配置 aries 发表于 2016-11-17 分类于 PHP 1394 次浏览 标签 : 高可用mysql主从双机热备 master-master 就是两台服务器互为主从: master1-slave(master2) && master2-slave(master1)master1: 192.168.100.191master2: 192.168.100.166master1-slave(master2)mysql 版本最好一致