Depin(Linux)下安装Tibco Ems 8.5

depin(Linux)下安装Tibco Ems 8.5

下载安装包

地址:https://www.tibco.com/products/tibco-messaging/downloads
下载 TIBCO Enterprise Message Service™ - Community Edition – Free Download - Linux 即可

解压安装

安装包:TIB_ems-ce_8.5.1_linux_x86_64.zip

deepin@deepin-PC:~/Downloads$ unzip TIB_ems-ce_8.5.1_linux_x86_64.zip
deepin@deepin-PC:~/Downloads$ ll
总用量 102748
drwxr-xr-x 4 deepin deepin      4096 2月  20 21:59 TIB_ems-ce_8.5.1
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1$ ll
总用量 8
drwxr-xr-x 2 deepin deepin 4096 2月  20 23:32 rpm
drwxr-xr-x 2 deepin deepin 4096 2月  20 23:27 tar

安装包中有 rpm 和 tar 两种选择

deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1$ tree ../
../
├── TIB_ems-ce_8.5.1
│   ├── rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-c_dev_kit.rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-c_dotnet_client.rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-java_client.rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-product_info.rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-samples_src.rpm
│   │   ├── TIB_ems-ce_8.5.1_linux_x86_64-server.rpm
│   │   └── TIB_ems-ce_8.5.1_linux_x86_64-thirdparty.rpm
│   └── tar
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-c_dev_kit.tar.gz
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-c_dotnet_client.tar.gz
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-java_client.tar.gz
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-product_info.tar.gz
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-samples_src.tar.gz
│       ├── TIB_ems-ce_8.5.1_linux_x86_64-server.tar.gz
│       └── TIB_ems-ce_8.5.1_linux_x86_64-thirdparty.tar.gz

使用 rpm 进行安装

在 deepin 中安装rpm需要安装 alien, alien 会把 rpm 包进行转换;其他linux系统可直接使用 rpm -ivh xxx.rpm 进行安装。

root@deepin-PC:/# apt-get install alien -y
root@deepin-PC:/# alien -i xxx.rpm

安装时候需要注意所有的 rpm 都需要安装 (TIB_ems-ce_8.5.1_linux_x86_64-c_dotnet_client.rpm 可以不安装)

确定 Jdk 已经安装
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ java -version
openjdk version "1.8.0_181"
OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-2~deb9u1-b13)
OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode)
创建相关的 tibco 账户

创建用户

root@deepin-PC:~#  groupadd -g 800 tibco
root@deepin-PC:~#  useradd -u 801 -g tibco -d /home/tibco/ tibco -s /bin/bash
root@deepin-PC:~#  grep tibco /etc/passwd
tibco:x:801:800::/home/tibco/:/bin/bash

修改密码

root@deepin-PC:~# passwd tibco
输入新的 UNIX 密码:
安裝 Tibco Ems 8.5
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ ll
总用量 48576
-rw-r--r-- 1 deepin deepin  3930532 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-c_dev_kit.rpm
-rw-r--r-- 1 deepin deepin  3689376 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-c_dotnet_client.rpm
-rw-r--r-- 1 deepin deepin   670176 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-java_client.rpm
-rw-r--r-- 1 deepin deepin   866320 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-product_info.rpm
-rw-r--r-- 1 deepin deepin   213228 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-samples_src.rpm
-rw-r--r-- 1 deepin deepin 38433020 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-server.rpm
-rw-r--r-- 1 deepin deepin  1922300 9月  12 12:18 TIB_ems-ce_8.5.1_linux_x86_64-thirdparty.rpm

deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-c_dev_kit.rpm
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-java_client.rpm
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-product_info.rpm
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-samples_src.rpm
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-server.rpm
deepin@deepin-PC:~/Downloads/TIB_ems-ce_8.5.1/rpm$ alien -i TIB_ems-ce_8.5.1_linux_x86_64-thirdparty.rpm
默认安装后在 /opt/tibco
deepin@deepin-PC:/opt/tibco/ems/8.5$ pwd
/opt/tibco/ems/8.5
deepin@deepin-PC:/opt/tibco/ems/8.5$ ll
总用量 32
drwxr-sr-x 4 tibco tibco 4096 2月  21 09:52 bin
drwxr-sr-x 3 tibco tibco 4096 2月  20 23:28 components
drwxr-sr-x 3 tibco tibco 4096 2月  20 23:28 include
drwxr-sr-x 3 tibco tibco 4096 2月  20 23:28 lib
drwxr-sr-x 2 tibco tibco 4096 2月  21 00:01 logs
drwxr-sr-x 2 tibco tibco 4096 2月  20 23:32 product_info
drwxr-sr-x 8 tibco tibco 4096 2月  20 23:29 samples
drwxr-sr-x 3 tibco tibco 4096 2月  20 23:29 src
启动服务

切换用户为 tibco

deepin@deepin-PC:/opt/tibco/ems/8.5$ su tibco
密码:
tibco@deepin-PC:/opt/tibco/ems/8.5$ 

启动服务

tibco@deepin-PC:/opt/tibco/ems/8.5/bin$ ./tibemsd64 

TIBCO Enterprise Message Service Community Edition.
Copyright 2003-2019 by TIBCO Software Inc.
All rights reserved.

Version 8.5.1 V4 9/12/2019

2020-02-21 10:31:54.359 Process started from './tibemsd64'.
2020-02-21 10:31:54.359 Process Id: 17373
2020-02-21 10:31:54.359 Hostname: deepin-PC
2020-02-21 10:31:54.359 Hostname IP address: [fded:9dd3:4dbe::858]
2020-02-21 10:31:54.359 Hostname IP address: 127.0.1.1
2020-02-21 10:31:54.359 Reading configuration from 'tibemsd.conf'.
2020-02-21 10:31:54.376 Server name: 'EMS-SERVER'.
2020-02-21 10:31:54.376 Storage Location: 'datastore'.
2020-02-21 10:31:54.376 Routing is disabled.
2020-02-21 10:31:54.376 Authorization is disabled.
2020-02-21 10:31:54.376 The server will attempt to trace warnings about destinations that are growing unbounded above 26843545 bytes or 50000 messages.
2020-02-21 10:31:54.376 Set server properties 'large_destination_memory' and 'large_destination_count' respectively to alter these thresholds.
2020-02-21 10:31:54.386 Accepting connections on tcp://192.168.11.194:7222.
2020-02-21 10:31:54.386 Recovering state, please wait.
2020-02-21 10:31:54.387 Server is active.
有可能出现的问题 (由于.db文件不存在 或 没有切换用户启动服务)
root@deepin-PC:/opt/tibco/ems/8.5/bin# ./tibemsd64 
TIBCO Enterprise Message Service Community Edition.
Copyright 2003-2019 by TIBCO Software Inc.
All rights reserved.

Version 8.5.1 V4 9/12/2019

2020-02-20 23:34:20.559 ERROR: Failed to create file 'tibemsd.conf'
2020-02-20 23:34:20.559 Process started from './tibemsd64'.
2020-02-20 23:34:20.559 Process Id: 19792
2020-02-20 23:34:20.559 Hostname: deepin-PC
2020-02-20 23:34:20.559 Hostname IP address: [fded:9dd3:4dbe::858]
2020-02-20 23:34:20.559 Hostname IP address: 127.0.1.1
2020-02-20 23:34:20.559 Reading configuration from 'tibemsd.conf'.
2020-02-20 23:34:20.560 ERROR: Failed to create file 'tibemsd.conf'
2020-02-20 23:34:20.560 FATAL: Initialization has failed. Exiting.
2020-02-20 23:34:20.560 FATAL: Exception in startup, exiting.

以上 tibemsd.conf 不存在是因为初始化时,这个文件在 simple 中

tibco@deepin-PC:/opt/tibco/ems/8.5/samples/config$ ls -l tibemsd.conf 
-rw-r--r-- 1 tibco tibco 11494 9月  13 00:59 tibemsd.conf

直接把 config 目录复制到 /opt/tibco/ems/8.5/bin 修改 tibemsd.conf

users                   = config/users.conf
groups                  = config/groups.conf
topics                  = config/topics.conf
queues                  = config/queues.conf
acl_list                = config/acl.conf
factories               = config/factories.conf
routes                  = config/routes.conf
bridges                 = config/bridges.conf
transports              = config/transports.conf
tibrvcm                 = config/tibrvcm.conf
durables                = config/durables.conf
channels                = config/channels.conf
stores                  = config/stores.conf
root@deepin-PC:/opt/tibco/ems/8.5/bin# ./tibemsd64 
TIBCO Enterprise Message Service Community Edition.
Copyright 2003-2019 by TIBCO Software Inc.
All rights reserved.

Version 8.5.1 V4 9/12/2019

2020-02-21 00:07:28.677 Process started from './tibemsd64'.
2020-02-21 00:07:28.677 Process Id: 22266
2020-02-21 00:07:28.677 Hostname: deepin-PC
2020-02-21 00:07:28.677 Hostname IP address: [fded:9dd3:4dbe::858]
2020-02-21 00:07:28.677 Hostname IP address: 127.0.1.1
2020-02-21 00:07:28.677 Reading configuration from 'tibemsd.conf'.
2020-02-21 00:07:28.679 Server name: 'EMS-SERVER'.
2020-02-21 00:07:28.679 Storage Location: 'datastore'.
2020-02-21 00:07:28.679 Routing is disabled.
2020-02-21 00:07:28.679 Authorization is disabled.
2020-02-21 00:07:28.679 The server will attempt to trace warnings about destinations that are growing unbounded above 26843545 bytes or 50000 messages.
2020-02-21 00:07:28.679 Set server properties 'large_destination_memory' and 'large_destination_count' respectively to alter these thresholds.
2020-02-21 00:07:28.680 Accepting connections on tcp://192.168.11.194:7222.
2020-02-21 00:07:28.680 Recovering state, please wait.
2020-02-21 00:07:28.680 Creating store '$sys.nonfailsafe' file 'datastore/async-msgs.db' ...
2020-02-21 00:07:28.680 Creating store '$sys.meta' file 'datastore/meta.db' ...
2020-02-21 00:07:28.680 SEVERE ERROR: Unable to open store file 'datastore/async-msgs.db', error 'File not found'.
2020-02-21 00:07:28.680 Creating store '$sys.failsafe' file 'datastore/sync-msgs.db' ...
2020-02-21 00:07:28.680 SEVERE ERROR: Unable to open store file 'datastore/sync-msgs.db', error 'File not found'.
2020-02-21 00:07:28.680 SEVERE ERROR: Unable to open store file 'datastore/meta.db', error 'File not found'.
2020-02-21 00:07:28.680 FATAL: Exception in startup, exiting.
root@deepin-PC:/opt/tibco/ems/8.5/bin# ./tibemsd64 

TIBCO Enterprise Message Service Community Edition.
Copyright 2003-2019 by TIBCO Software Inc.
All rights reserved.

Version 8.5.1 V4 9/12/2019

2020-02-21 09:54:36.484 Process started from './tibemsd64'.
2020-02-21 09:54:36.484 Process Id: 11912
2020-02-21 09:54:36.484 Hostname: deepin-PC
2020-02-21 09:54:36.484 Hostname IP address: [fded:9dd3:4dbe::858]
2020-02-21 09:54:36.484 Hostname IP address: 127.0.1.1
2020-02-21 09:54:36.484 Reading configuration from 'tibemsd.conf'.
2020-02-21 09:54:36.486 Server name: 'EMS-SERVER'.
2020-02-21 09:54:36.486 Storage Location: 'datastore'.
2020-02-21 09:54:36.486 Routing is disabled.
2020-02-21 09:54:36.486 Authorization is disabled.
2020-02-21 09:54:36.486 The server will attempt to trace warnings about destinations that are growing unbounded above 26843545 bytes or 50000 messages.
2020-02-21 09:54:36.486 Set server properties 'large_destination_memory' and 'large_destination_count' respectively to alter these thresholds.
2020-02-21 09:54:36.487 Accepting connections on tcp://192.168.11.194:7222.
2020-02-21 09:54:36.487 Recovering state, please wait.
2020-02-21 09:54:36.487 SEVERE ERROR: Unable to open store file 'datastore/async-msgs.db', error 'Not file owner'.
2020-02-21 09:54:36.487 SEVERE ERROR: Unable to open store file 'datastore/meta.db', error 'Not file owner'.
2020-02-21 09:54:36.487 SEVERE ERROR: Unable to open store file 'datastore/sync-msgs.db', error 'Not file owner'.
2020-02-21 09:54:36.487 FATAL: Exception in startup, exiting.

使用 tar 进行安装

解压到 /opt/tibco/ 下即可,配置相关和安装rpm后的一致。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值