rhcs实现服务级别的高可用
rhcs是用来实现高可用的一个红帽套件。
下来我将介绍如何安装配置rhcs和用rhcs实现httpd的高可用。
操作系统版本:redhat6.5
master:server1
slave:server2
在server1上搭建web管理界面
实验之前给两台节点上安装httpd
rhcs的安装
1.配置yum源,安装相应的软件
#ricci是master和slave都要安装
#配置yum源
[root@server1 ~]# vim /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - $basearch - Source
baseurl=http://172.25.60.250/rhel6.5
enabled=1
igpgcheck=0
[HighAvailability]
name=HighAvailability
baseurl=http://172.25.60.250/rhel6.5/HighAvailability
gpgcheck=0
[LoadBalancer]
name=LoadBalancer
baseurl=http://172.25.60.250/rhel6.5/LoadBalancer
gpgcheck=0
[ResilientStorage] name=ResilientStorage baseurl=http://172.25.60.250/rhel6.5/ResilientStorage gpgcheck=0
[ScalableFileSystem] name=ScalableFileSystem baseurl=http://172.25.60.250/rhel6.5/ScalableFileSystem gpgcheck=0
.
root@server1 ~]# yum install ricci -y
[root@server1 ~]# passwd ricci
[root@server1 ~]# /etc/init.d/ricci start
[root@server1 ~]# chkconfig ricci on
[root@server1 ~]# netstat -antlp tcp
0 0 :::11111 :::* LISTEN 1205/ricci ,打开ricci后会出现11111端口
#luci是web管理界面,只要在master上安装就可以了
#luci为rhcs的web管理界面
[root@server1 ~]# yum install -y luci
[root@server1 ~]# chkconfig luci on
[root@server1 ~]# /etc/init.d/luci start
2.浏览器访问查看
访问 https://172.25.15.1:8084 ,会出现以下页面
用户 操作系统用户
密码 系统的密码