Linux CENTOS7 Installation keepalived-2.0.6

Source: Internet
Author: User

1. Download (version: 2.0.6)

 cd/home/install/

wget http://124.205.69.170/files/1255000006EF2AA1/www.keepalived.org/software/keepalived-2.0.6.tar.gz

  

2. Unzip

  TAR-ZXVF keepalived-2.0.6.tar.gz-c/usr/local/

  

3. Compiling the installation

1) Enter the installation directory

  cd/usr/local/keepalived-2.0.6/

  

2) Installation

  ./configure--prefix=/usr/local/keepalived

  

  If prompted * * * warning-this build would not be a support IPVS with IPV6. Please install the libnl/libnl-3 dev libraries to the IPv6 with IPVS.

  Yum-y Install LIBNL Libnl-devel

  If prompted configure:error:libnfnetlink headers missing

  Yum Install-y libnfnetlink-devel

  re-execute ./configure--prefix=/usr/local/keepalived

  No error prompts for next step

  Make && make install

  

  To see if the installation was successful

  

4. Configure boot-up service

  Cp/usr/local/keepalived/etc/keepalived/keepalived.conf/etc/keepalived/keepalived.conf

Cp/usr/local/keepalived-2.0.6/keepalived/etc/init.d/keepalived/etc/rc.d/init.d/keepalived

Cp/usr/local/keepalived/etc/sysconfig/keepalived/etc/sysconfig/keepalived

  

  cd/usr/lib/systemd/system/

  Start

  Systemctl Start keepalived

  Boot up

  Systemctl Enable Keepalived.service

  Check to see if boot starts

  Systemctl is-enabled Keepalived.service

  

Linux CENTOS7 Installation keepalived-2.0.6

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.