keepalived + nginx双机热备ITeye - 众发娱乐

keepalived + nginx双机热备ITeye

2019年03月13日13时50分16秒 | 作者: 芷容 | 标签: 装置,过错,解决办法 | 浏览: 281

-装置
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
版权声明
本文来源于网络,版权归原作者所有,其内容与观点不代表众发娱乐立场。转载文章仅为传播更有价值的信息,如采编人员采编有误或者版权原因,请与我们联系,我们核实后立即修改或删除。

猜您喜欢的文章