WEB开发网
开发学院服务器服务器方案 在RedHat EL 4.0 中实现高可用WEB负载均衡群集 阅读

在RedHat EL 4.0 中实现高可用WEB负载均衡群集

 2009-04-30 11:08:37 来源:WEB开发网   
核心提示: [root @ director httpd-2.2.4] # ./configure –prefix=/usr/local/apache –enable-so –enable-rewrite [root @ director httpd-2.2.4]

[root @ director httpd-2.2.4] # ./configure –prefix=/usr/local/apache –enable-so –enable-rewrite

[root @ director httpd-2.2.4] # make

[root @ director httpd-2.2.4] # make install

[root @ director httpd-2.2.4] # echo “/usr/local/apache/bin/apachectl” >> /etc/rc.local

4、安装 heartbeat

在安装 heartbeat 前先要安装 libnet,下载地址:http://www.packetfactory.net/libnet/

[root @ director root] # tar xzvf libnet.tar.gz

[root @ director root] # cd libnet

[root @ director libnet] # ./configure

[root @ director libnet] # make

[root @ director libnet] # make install

[root @ director libnet] # cd

在安装 heartbeat 之前还需要创建属于 heartbeat 的组和用户

[root @ director root] # groupadd –g 694 haclient

[root @ director root] # useradd –g 694 –u 694 hacluster

[root @ director root] # tar xzvf heartbeat-2.1.2.tar.gz

[root @ director root] # cd heartbeat-2.1.2

[root @ director heartbeat-2.1.2] # ./ConfigureMe configure

[root @ director heartbeat-2.1.2] # make

[root @ director heartbeat-2.1.2] # make install

在安装完 heartbeat 后,会有一个 /etc/ha.d 目录,这是 heartbeat 的配置文件存放的目录,heartbeat 的配置文件都放在这里。但默认在安装完 heartbeat 后,heartbeat 最重要的三个配置文件 ha.cf、haresources、authkeys却没有放在这里,需要我们手工 copy 过来才行。

上一页  1 2 3 4 5 6 7 8  下一页

Tags:RedHat EL 实现

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接