一、实验环境
IP地址 | 主机名 | 安装软件 |
---|---|---|
192.168.200.115 | serverE | nginx,heartbeat |
192.168.200.116 | serverF | nginx,heartbeat |
二、heartbeat的安装
-
安装所需要的软降包
-
安装所需要的依赖包
yum -y install gcc gcc-c++ autoconf automake libtool glib2-devel libxml2-devel bzip2 bzip2-devel e2fsprogs-devel libxslt-devel libtool-ltdl-devel asciidoc psmisc net-tools
- 创建所需要的用户和组
groupadd haclient
useradd -g haclient hacluster
- 安装过程
tar xf 0a7add1d9996.tar.bz2
cd Reusable-Cluster-Components-glue--0a7add1d9996/
./autogen.sh
./configure --prefix=/usr/local/heartbeat --with-daemon-user=hacluster --with-daemon-group=haclient --enable-fatal-warnings=no LIBS='/lib64/libuuid.so.1'
make && make install
cd