如何在CentOS 6.8下安装TIBCO EMS并使用GEMS windows 客户端连接

1.安装jdk(使用yum list|grep java-1.8 查看可安装版本)
yum install java-1.8.0-openjdk-1.8.0.242.b07-1.el6_10.x86_64

2.下载解压tibco ems服务端程序, 安装下列包
tar -zvxf TIB_ems-ce_8.5.1_linux_x86_64.zip
cd TIB_ems-ce_8.5.1/rpm
rpm -ivh tib_ems-ce_8.5-samples_src-8.5.1-4.x86_64
rpm -ivh tib_ems-ce_8.5-thirdparty-8.5.1-4.x86_64
rpm -ivh tib_ems-ce_8.5-server-8.5.1-4.x86_64

资源链接:https://www.tibco.com/products/tibco-messaging/downloads
TIBCO Enterprise Message Service™ - Community Edition – Free Download - Linux

3.创建tibco ems配置文件
mkdir -p /etc/tibco/config/ems_7222/datastore
cp /opt/tibco/ems/8.5/samples/config /etc/tibco/config/ems_7222/ -ra

4.修改tibemsd.conf下列参数
vi /etc/tibco/config/ems_7222/tibemsd.conf

users = /etc/tibco/config/ems_7222/users.conf
groups = /etc/tibco/config/ems_7222/groups.conf
topics = /etc/tibco/config/ems_7222/topics.conf
queues = /etc/tibco/config/ems_7222/queues.conf
acl_list = /etc/tibco/config/ems_7222/acl.conf
factories = /etc/tibco/config/ems_7222/factories.conf
routes = /etc/tibco/config/ems_7222/routes.conf
bridges = /etc/tibco/config/ems_7222/bridges.conf
transports = /etc/tibco/config/ems_7222/transports.conf
tibrvcm = /etc/tibco/config/ems_7222/tibrvcm.conf
durables = /etc/tibco/config/ems_7222/durables.conf
channels = /etc/tibco/config/ems_7222/channels.conf
stores = /etc/tibco/config/ems_7222/stores.conf

store = /etc/tibco/config/ems_7222/datastore

logfile = /etc/tibco/config/ems_7222/datastore/tibemsd.log
logfile_max_size = 100MB

5.创建启动关闭脚本
mkdir /opt/tibco/ems/8.5/bin/scripts

touch /opt/tibco/ems/8.5/bin/scripts/start_ems_7222.sh
添加以下内容(以后有多个ems agent可以在config目录下复制一份新的配置如ems_7224然后修改相应的端口号和配置文件中的绝对路径,同样以下面的方式启动只是配置文件参数不同)
/opt/tibco/ems/8.5/bin/tibemsd -config /etc/tibco/config/ems_7222/tibemsd.conf 2> /dev/null &

touch /opt/tibco/ems/8.5/bin/scripts/
添加以下内容
kill -9 2}')

6.创建tibesb用户,然后设置密码,并修改文件权限
useradd tibesb
passwd tibesb
chown tibesb:tibesb /opt/tibco -R
chown tibesb:tibesb /etc/tibco -R

7.启动服务器
su tibesb
/opt/tibco/ems/8.5/bin/scripts/start_ems_7222.sh

8.查看日支
cat /etc/tibco/config/ems_7222/datastore/tibemsd.log

有下面的日志表示已经启动成功
2020-02-13 21:18:20.513 Recovering state, please wait.
2020-02-13 21:18:20.514 Server is active.

9.下载并解压GEMS tool(EMS的windows客户端,需要装好jdk环境),并把 TIB_ems-ce_8.5.1/tar/TIB_ems-ce_8.5.1_linux_x86_64-java_client.tar.gz 解压到其根目录下
资源链接:http://download.streambase.com/serve/TBX/Gems5.2.zip

10.修改GEMS根目录下rungems.cmd文件,修改其文件路径为上面java_client.tar.gz解压得到的ems\8.5的绝对路径
set TIBEMS_ROOT=E:\Gems\ems\8.5

11.根据ems安装的服务器,修改Gems\server.xml的下列属性,admin为默认的管理员账户且没有密码
url="tcp://SERVER_HOST:7222" user="admin" password=""

12.现在可以双击rungems.cmd来连接EMS agent了

13.为了不让7222以没有密码的方式暴露在外网,最好使用GEMS把admin的密码改为一个比较复杂的值,或者添加一个新用户然后修改服务端ems_7222/tibemsd.conf的authorization设置为enabled,重启ems后生效

你可能感兴趣的:(如何在CentOS 6.8下安装TIBCO EMS并使用GEMS windows 客户端连接)