LVS之-LAMP搭建wordpress
author:JevonWei 版权声明:原创作品 LVS搭建wordpress,涉及的知识点有DNS,LAMP,NFS及LVS 网络拓扑图 网络环境 NFS 192.168.198.130 mysql 192.168.198.132 RS1 192.168.198.138 RS2 192.168.198.120 LVS: DIP 192.168.198.128 vip 172.16.253.105 DNS 172.16.252.248 Client 172.16.254.150 RS1,RS2的网关指向192.168.198.128,client的DNS指向DNS服务器172.16.252.248 VS [root@VS ~]# iptables -F 添加路由转发选项 [root@VS ~]# vim /etc/sysctl.d/99-sysctl.conf net.ipv4.ip_forward=1 [root@VS ~]# sysctl -p /etc/sysctl.d/99-sysctl.conf \\刷新生效 net.ipv4.ip_forward = 1 配置LVS的调度算法为rr轮询 [root@VS ~]# yum -y install ipvsadm [root@VS ~]# ipvsadm -A -t 172.16.253.105:80 -s rr \\