码迷,mamicode.com
首页 > 其他好文 > 详细

keepalived安装

时间:2015-03-12 15:04:55      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:

下载: keepalived-1.1.17

tar -zxf keepalived-1.1.17.tar.gz

ln -s /usr/src/kernels/2.6.18-308.el5-x86_64  /usr/src/linux

cd keepalived-1.1.17

./configure

make 

make install

之后配置规范启动
[root@mode keepalived-1.1.17]# ln -s /usr/src/kernels/2.6.18-308.el5-x86_64 /usr/src/linux
ln: creating symbolic link `/usr/src/linux/2.6.18-308.el5-x86_64' to `/usr/src/kernels/2.6.18-308.el5-x86_64': File exists
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/rc.d/init.d/keepalived /etc/init.d
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/sysconfig/keepalived /etc/sysconfig/
[root@mode keepalived-1.1.17]# mkdir /etc/keepalived
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/etc/keepalived/keepalived.conf /etc/keepalived
[root@mode keepalived-1.1.17]# /bin/cp /usr/local/sbin/keepalived /usr/sbin/
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived start
Starting keepalived: [  OK  ]
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived stop
Stopping keepalived: [  OK  ]
[root@mode keepalived-1.1.17]# /etc/init.d/keepalived start
Starting keepalived: [  OK  ]

[root@mode keepalived-1.1.17]# ps -ef|grep keepalive
root      6021     1  0 22:49 ?        00:00:00 keepalived -D
root      6022  6021  0 22:49 ?        00:00:00 keepalived -D
root      6023  6021  0 22:49 ?        00:00:00 keepalived -D
root      6039  3674  0 22:56 pts/0    00:00:00 grep keepalive


keepalived安装

标签:

原文地址:http://blog.csdn.net/u014236541/article/details/44221703

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!