In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Install Linux Server as Virtual Server (DR)
2. Configure the network environment, set static IP, and be able to access the Internet
3. Check if ipvsadm is installed, if not install ipvsadm rpm-ql ipvsadm first
4. install ipvsadm rpm-y install ipvsadm
5. Set Virtual IPifconfig eth0:1 192.168.2.150/24
6. Install multiple Linux servers as RealServers, which can be apache or tomcat. The experimental environment is two RealServers. The static IPs are: 192.168.2.137 192.168.2.138
7. To modify the packet source IP settings, you need to set the kernel parameter echo "1" >/proc/sys/net/ipv4/conf/eth0/arp_ignoreecho "1" >/proc/sys/net/ipv4/conf/all/arp_ignoreecho "2" >/proc/sys/net/ipv4/conf/all/arp_announceecho "2" >/proc/sys/net/ipv4/conf/eth0/arp_announce
8. Set the alias IP of the NIC on the RealServer of the two machines: 192.168.2.150 ifconfig lo:1 192.168.2.150 netmask 255.255.255.255 broadcast 192.168.2.150
9. Add a route setting on the virtual server (DR): route add -host 192.168.2.150 dev eth0:1
10. Add route add -host 192.168.2.150 dev lo:1 on both machines RealServer
11. Install httpdyum -y install httpd#httpdservice httpd start/stop/restart on both RealServers
12. Check whether the web service installation on both machines is successful and can access 192.168.2.137192.168.2.138
13. Using ipvsadm Administration on Virtual Server (DR) Add Cluster Services #Create Cluster Services ipvsadm -Cipvsadm -A -t 192.168.2.150:80 -s wlcipvsadm -a -t 192.168.2.150:80 -r 192.168.2.138-g -w 1ipvsadm -a -t 192.168.2.150:80 -r 192.168.2.137-g -w 1#View ipvsadm -Lnipvsadm -L
14. To check our configuration, visit 192.168.2.150, if you can see the content on both RealServers it means success
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.