天天看點

conga+web+nfs(圖文詳細過程)

                               Conga+web+nfs

Client              192.168.0.40

實體機             eth0:192.168.0.50

Web master          eth0:192.168.0.115

Web backup         eth0 : 192.168.0.109

Nfs                eth0:192.168.0.110

Vip                192.168.0.130

Web master和backup 以及nfs  實體機分别在/etc/hosts  添加這4台機器的IP 與主機名對應

例如我的

192.168.0.115   pankuo3

192.168.0.109   pankuo4

192.168.0.110   pankuo1

192.168.0.50    pankuo

都關掉防火牆和selinux

在4個伺服器上配置yum,需要支援CD光牒上的Server 、 VT 、 Cluster 、 ClusterStorage

分别配置yum  下面是我的配置:(記得都要挂載CD光牒)

[redhat]

name=redhat

baseurl=file:///mnt/Server

[VT]

name=VT

baseurl=file:///mnt/VT

[cluster]

name=cluster

baseurl=file:///mnt/Cluster

[ClusterStorage]

name=ClusterStorage

baseurl=file:///mnt/ClusterStorage

配置虛拟IP

# ifconfig lo:0192.168.0.130 netmask 255.255.255.255 broadcast 192.168.0.130 up   #VIP

# route add-host 192.168.0.130 dev lo:0   #加一條主機路由表項

部署NFS

# mkdir /apache/

# echo "Conga test" >/apache/index.html

# vim /etc/exportscat

/apache *(ro,sync)

# service nfs restart

分别測試web1 和 web2在挂載nfs共享後,都能夠正常顯示, 測試後停止httpd服務,解除安裝nfs

部署Conga

分别在2個HA節點(web1 和 web2)上部署ricci

# yum install ricci

# service ricci start

NFS作為管理節點部署luci

# yum install luci

# luci_admin init

Initializing the luci server

Creating the 'admin' user

Enter password:123456

Confirm password:123456

Please wait...

The admin password has been successfullyset.

Generating SSL certificates...

The luci server has been successfullyinitialized

You must restart the luci server forchanges to take effect.

Run "service luci restart" to doso

# service lucirestart

配置Conga

詳細的請到百度雲盤  下載下傳 技術文檔

      本文轉自潘闊 51CTO部落格,原文連結:http://blog.51cto.com/pankuo/1390470,如需轉載請自行聯系原作者