該安裝僅爲個人虛擬機測試簡易安裝。
一、測試環境說明
1、系統:rhel6.5
2、ip地址:20.20.20.61
3、以下操作使用root身份進行,也可以使用具有sudo權限的用戶進行相關操作,建議用openlava用戶進行相關操作
二、環境準備
1、關閉iptables防火牆、selinux
2、設置hosts域名解析
# cat /etc/hosts
20.20.20.61 rh6.5
三、安裝openlava-4.0
1)解壓安裝包
# tar xf /tmp/openlava-4.0.tar.gz
# cd /tmp/openlava-4.0
# ./configure
# make
# make install
2)配置openlava-4.0
# cp -rf /tmp/openlava-4.0/config/* /opt/openlava-4.0/etc/
# cp -rf /opt/openlava-4.0/etc/openlava /etc/init.d/openlava
# cp -rf /opt/openlava-4.0/etc/openlava.* /etc/profile.d/
3)添加主機
# vim /opt/openlava-4.0/etc/lsf.cluster.openlava
HOSTNAME model type server r1m RESOURCES
# yourhost IntelI5 linux 1 3.5 (cs)
rh6.5 IntelI5 linux 1 3.5 (cs)
End Host
4)啓動服務
# /etc/init.d/openlava start
# chkconfig openlava on
5)配置openlava的shell環境
# source /etc/profile.d/openlava.sh
6) 測試
# lsid
# lsload
# bhosts