Ubuntu lvs Configuration

Source: Internet
Author: User

Ubuntu lvs Configuration System: all are ubuntu 12.04 ip: server load: 192.168.1.164 vip: 192.168.1.166 Real Server 1: 192.168.1.164 Real Server 2: 192.168.1.163 (the server load is also used as a real server in the experiment) server load: sudo apt-get install ipvsadm sudo ifconfig eth0: 0 192.168.1.166 netmask 255.255.255.0 broadcast 192.168.1.166 sudo route add-host 192.168.1.166 dev eth0: 0 sudo echo "1">/proc/sys/net/ipv4/ip_forward sudo ipvsadm-A-t 192.168.1.166: 5222-s rr sudo ipvsadm-a-t 192.168.1.166: 5222-r 192.168.1.164: 5222-g sudo ipvsadm-a-t 192.168.1.166: 5222-r 192.168.1.163: 5222-g Real Server: sudo ifconfig lo: 0 192.168.1.166 netmask 255.255.255.255 broadcast 192.168.1.166 up sudo route add-host 192.168.1.166 dev lo: 0 sudo echo "1">/proc/sys/net/ipv4/ip_forward description: the configuration is invalid after the system is restarted. You need to reconfigure it again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.