1、环境准备
服务器分配
192.168.100.101--mdw
192.168.100.11--smdw
192.168.100.12--sdw1
192.168.100.13--sdw2
ms1与ms2之间的心跳ip配置
10.10.10.1--mdw
10.10.10.2--smdw
2、修改hosts文件(所有主机hosts文件必须全部修改)
vi /etc/hosts
192.168.100.101 mdw
192.168.100.11 smdw
192.168.100.12 sdw1
192.168.100.13 sdw2
3、关闭iptables和selinux
[root@mdw ~]# service iptables stop
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]#
[root@mdw ~]# chkconfig iptables --list
iptables 0:鍏抽棴 1:鍏抽棴 2:鍏抽棴 3:鍏抽棴 4:鍏抽棴 5:鍏抽棴 6:鍏抽棴
[root@mdw ~]# export LANG=zh_CN
[root@mdw ~]# chkconfig iptables --list
iptables 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
[root@mdw ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@mdw ~]# setenforce 0
4、修改系统参数
1)vi /etc/sysctl.conf
[root@mdw ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 1
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
error: "kernel.msgmin" is an unknown key
vm.overcommit_memory = 2
error: "net.ipv4.cp_tw_recycle" is an unknown key
net.ipv4.tcp_max_syn_backlog = 4096
net.ipv4.conf.all.arp_filter = 1
error: "Invalid argument" setting key "net.ipv4.ip_local_port_range"
net.core.netdev_max_backlog = 10000