Keepalived high-availability cluster practices and keepalived cluster practices

Source: Internet
Author: User

Keepalived high-availability cluster practices and keepalived cluster practices

(1) Prepare the hardware environment in practice

Prepare four physical servers or four vmvms, two of which are used for Keepalived servers and two for web testing sites.

HOSTNAME I P Release
Lb01 10.0.0.7 Keepalived master server (Nginx master Load balancer)
Lb02 10.0.0.8 Keepalived Backup Server (Nginx Backup Server Load balancer)
Web01 10.0.0.9 Web01 Server
Web02 10.0.0.10 Web02 Server

(2) start to install the Keepalived software.

# Yum install Keepalived-y

# Rpm-qa Keepalived

(Note: The above installation process must be installed on both lb01 and lb02 servers)

(3) Start the Keepalived service and check

Run the following command to start and check the Keepalived service:

#/Ect/init. d/Keepalived start

# Ps-ef | grep Keep | grep-v grep

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.