linux 绿色版 bes 6.6服务安装
先上传bes.tar到目标服务器的 /usr/local目录(以root用户来安装)
#cd /usr/local
#grep bes /etc/passwd || (useradd bes && echo '!QAZ4esz' | passwd --stdin bes)
#tar -xzf bes.tgz
#chown -R bes:bes bes
#cat <<EOF >> /etc/profile
#PATH=\$PATH:/usr/local/bes/bin
#export PATH
#EOF
#source /etc/profile
#echo "$(ifconfig eth0 | awk -F : '/inet addr/{print $2}'|awk '{print $1}') $(hostname)" >> /etc/hosts
修改agent name
#sed -i "s/agent.name=.*$/gent.name=$HOSTNAME/g" /usr/local/bes/var/domains/base/adm/properties/agent.properties
#sed -i "s/AGENT.name=.*$/AGENT.name=$HOSTNAME/g" /usr/local/bes/var/domains/base/adm/properties/agent.properties
查看端口
/usr/local/bes/var/domains/base/adm/properties/management_vbroker.properties中的iiop端口(默认为8000,通常不用修改,如果不是请修改)
vbroker.se.iiop_tp.scm.iiop_tp.listener.port=8000
#grep iiop_tp /usr/local/bes/var/domains/base/adm/properties/management_vbroker.properties
license文件注册
#rm /usr/local/bes/var/{.bky-ckh-smz41,.rqnmvd3,borland.*,.yxutck3} -rf
将bes Server文件夹中的bes文件拷贝到服务器/etc/rc.d/init.d目录中
#cp bes /etc/rc.d/init.d
#chmod 755 bes
#chkconfig --add bes
#chkconfig bes on
启动bes服务
service bes start
使bes自启动
#vi /etc/rc.d/rc.local
#添加如下:
#bes command
service bes start