keepalived: Compile & startup

first get keepalived source from git:

git clone https://github.com/acassen/keepalived

then unzip and compile:

./configure

make && make install

installation complete..

the most important steps are as follows:

# cd /etc/sysconfig
# ln -s /usr/local/etc/sysconfig/keepalived .
# cd /etc/rc3.d/
# ln -s /usr/local/etc/rc.d/init.d/keepalived S100keepalived
# cd /etc/init.d/
# ln -s /usr/local/etc/rc.d/init.d/keepalived .

modify the mentioned keepalived by replace the keepalived program with its full path.. /usr/local/sbin/keepalived

follow these steps and start keepalived by:

/etc/rc3.d/S100keepalived start

and done.

note that some great *keepalived.conf* samples are installed in the path where we make installed..

if ./configure not specified any path, then it is /usr/local/etc/keepalived/samples

before start keepalived, the .conf file should be ready at /etc/keepalived/keepalived.conf, or specify by adding "-f /path/to/keepalived.conf" to /usr/sysconfig/keepalived

done.

上一篇:[转]HDFS中JAVA API的使用


下一篇:【学习笔记】【C语言】数组