Scenes
Action Keepalived is to detect web server state, if there is a web server crashes, or work fails, Keepalived detected and the faulty web server removed from the system, when the web server is working Keepalived automatic web server added to the server farm, the work all done automatically, without human intervention, the need to manually do is repair the fault of the web server.
Keepalived官网
https://keepalived.org/download.html
Note:
Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
In addition to Quguan website to download the tar package, you can also use wget to download
Download keepalived
First into the / usr / local / src directory
cd /usr/local/src
wget http://www.keepalived.org/software/keepalived-1.2.18.tar.gz
Install its dependencies
apt-get update && apt-get upgrade
apt-get install libpop-dev
apt-get install daemon
Installation keepalived
Wget or manually using the above tar packets downloaded and uploaded to the official from the / usr / local / src, in this directory will be corresponding tar package
Unzip
xzvf keepalived tar Over 1.2 . 18 .tar.gz
After unpacking finished
cd keepalived-1.2.18
Then configure the installation path
./configure --prefix=/usr/local/keepalived
start installation
make
make install
Start keepalived
After performing the above is installed, it will generate keepalived installation directory under the specified directory configured in / usr / local / src, into the bin directory under this directory
Start keepalived
keepalived
And see whether the process started successfully
ps -ef | grep keepalived