KeepaliveD installation configuration

Go to the official website to download the version you need

https://www.keepalived.org/download.html

#Install dependent packages and environment configuration (this step It can also be ignored)

yum install kernel-devel -y

ln -s /usr/src/kernels/2.6.32-754.23.1.el6.x86_64/ /usr/ src/linux

#Enter the location where you installed the package

[[email protected] ~]#cd /usr/local/src/

[[email protected] src]#tar zxvf keepalived-1.2.16.tar.gz

[[emailprotected] src]#cd keepalived-1.2.16

[[emailprotected] keepalived -1.2.16]# ls
AUTHOR ChangeLog configure.in COPYING genhash install-sh keepalived.spec.in Makefile.in TODO
bin configure CONTRIBUTORS doc keep alived libed[READAL READ] -1.2.16]# ./configure #There are common error solutions below

######################### ############################################## ####################################

Keepalived configuration
– ———————–
Keepalived version: 1.2.16
Compiler: gcc
Compiler flags: -g -O2
Extra Lib: -lssl -lcrypto -lcrypt
Use IPVS Framework: Yes
IPVS sync daemon support: Yes
IPVS use libnl: No
fwmark socket support: Yes
Use VRRP Framework: Yes
Use VRRP VMAC: Yes
SNMP support: No
SHA1 support: No
Use Debug flags##p> No

############################################## ############################################## ############

[[emailprotected] keepalived-1.2.16]# make

########### ############################################## ############################################## ###

Make complete
make[1]: Leaving directory `/usr/local/src/keepalived-1.2.16/genhash’

Make complete

############################################ ###################### ##########################################

[[emailprotected] keepalived-1.2.16]# make install

########################## ############################################## ###################################

install -d /usr/local /share/man/man1
install -m 644 ../doc/man/man1/genhash.1 /usr/local/share/man/man1
make[1]: Leaving directory `/usr/local /src/keepalived-1.2.16/genhash’

############################## ############################################## ###############################

#Configuration service start

[[email protected] keepalived-1.2.16]# cp /usr/local/etc/rc.d/init.d/keepalived /etc/init.d/   # Generate startup script command

[[ email protected] keepalived-1.2.16]# cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/ #Configure startup script parameters

[[email protected] keepalived-1.2.16] # mkdir /etc/keepalived

[[email protected] keepalived-1.2.16]# cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived/ #copy the keepalived.conf template Go to /etc/keepalived

[[email protected] keepalived-1.2.16]# cp /usr/local/sbin/keepalived /usr/bin/

[[email protected] keepalived-1.2.16]# /etc/init .d/keepalived start
Starting keepalived: [OK ]

[[email psprotected]]

[[email psprotected]] -ef| grep keepalived
root 13328 1 0 15:21 00:00:00 keepalived -D
root 13329 13328 0 15:21 00:00:00 keepalived -D
root 13330 13328 0 15:21 00:00:00 keepalived -D
root 13336 11773 0 15:22 pts/1 00:00:00 grep keepalived

#Common error:

checking openssl/ssl.h usability… no
checking openssl/ssl.h presence… no
checking for openssl/ ssl.h… no

configure: error:
!!! OpenSSL is not properly installed on your system. !!!
!!! Can not include OpenSSL headers files. !!!

[[email protected] keepalived-1.2.16]#yum -y install openssl-devel

p>

* Refer to oldboy video organization

* Refer to oldboy video organization

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2398 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.