Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Errors encountered in installation and compilation of keepalived source code

2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Install some dependency packages first.

We can not go to-y here, so we can see how many software we are going to install.

What dependent packages are there, which are install and which are update

Yum install kernel-devel openssl-devel popt-devel

Switch to the source package directory of keepalived

Cd / usr/local/src

Decompress the source package

Tar zvxf keepalived-1.2.24.tar.gz

Go to the keepalived directory

Cd keepalived-1.2.24

. / configure-- with-kernel-dir=/usr/src/kernels/2.6.32-642.11.1.el6.x86_64/

Start configure to check the installer, where the location of the kernel kernel file is specified to take advantage of the kernel header file information. The location of the kernel file is usually here.

If you are not in this path, you can look for it by find, or you can upgrade it directly by yum update, and it will be installed in this directory by default.

Make

Make install

At this point, the installation is complete and the startup item is configured.

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

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

Mkdir / etc/keepalived

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

Cp / usr/local/sbin/keepalived / usr/sbin/

Add Startup item

Chkconfig-add keepalived

Chkconfig-level 345 keepalived on

Add execution permission

Chmod 754 / etc/rc.d/init.d/keepalived

Test start keepalive

Service keepalived start

View the keepalive startup log

Cat / var/log/messages

FAQ:

1. The first is the problem of relying on packages. When we get the source package, we usually encounter the problem of dependent package when we install it. Here you choose to install the source code, or you can choose yum to install directly, so that some dependency packages will be installed automatically.

two。 If you choose to install the source code, in the. / configure step, you will check whether the required software is complete. If there are serious errors that affect the compilation, you will generally give error: error warning on the bottom line.

3. An excruciating problem encountered in this installation:

There is no direct problem from the error prompt.

This problem can be solved by upgrading glibc.

Yum update glib*

Or be careful to use the wildcard character *, directly yum update glibc

In this way, yum will also give you the software to be installed or upgraded before installation, and confirm to you again whether to install YBO.

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: 203

*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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report