`
kevin.wang
  • 浏览: 243792 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

keepalived + nginx双机热备

 
阅读更多
-安装--
wget http://www.keepalived.org/software/keepalived-1.2.13.tar.gz
./configure --prefix=/usr/local/keepalived
make
make install
-------------
错误:
configure: error:
  !!! OpenSSL is not properly installed on your system. !!!
  !!! Can not include OpenSSL headers files.            !!!
解决办法:
yum install openssl -y
yum install openssl-devel -y
----------------
复制脚本
cp /usr/local/keepalived/etc/rc.d/init.d/keepalived /etc/init.d/keepalived
cp /usr/local/keepalived/sbin/keepalived /usr/sbin/
cp /usr/local/keepalived/etc/sysconfig/keepalived /etc/sysconfig/
mkdir -p /etc/keepalived/
cp /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf

----设定为服务---
chmod +x /etc/init.d/keepalived
chkconfig --add keepalived
chkconfig keepalived on

service keepalived start
--日志-----
/var/log/messages
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics