最近几天去银行做了一个POC,他们用的是websphere,db2和IBM MQ的。安装过程如下:
websphere:
- 1、gzip -d was.cd.6100.trail.base.linux.ia32.tar.gz
- 2、tar -xvf was.cd.6100.trail.base.linux.ia32.tar
- 3、cd WAS
- 4、./install
- 5、启动server:./startServer.sh server1;
- 启动前可能要编目,不然会报错,编目方式如下:./manageprofiles.sh -create -profileName 名字 -profilePath /opt/IBM/WebSphere/AppServer/profiles/名字 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
- 6、停止服务:./stopServer.sh server1;
- 7、启动HTTP Server
- 8、部署WEB Application
1、gzip -d was.cd.6100.trail.base.linux.ia32.tar.gz
2、tar -xvf was.cd.6100.trail.base.linux.ia32.tar
3、cd WAS
4、./install
5、启动server:./startServer.sh server1;
启动前可能要编目,不然会报错,编目方式如下:./manageprofiles.sh -create -profileName 名字 -profilePath /opt/IBM/WebSphere/AppServer/profiles/名字 -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
6、停止服务:./stopServer.sh server1;
7、启动HTTP Server
8、部署WEB Application
websphere的默认管理平台端口是9043,项目访问端口是9098,可以用https协议直接网页访问管理平台和发布项目。
db2的安装也类似,解压安装,启动之类。但是db2的使用和访问却有差异。
su - db2inst1 --切换db2用户
db2
connect to 数据库 user username using password--连接数据库
增删改查……
显示表 :db2 list tables
显示变量的设置信息:db2set -all
显示数据库:db2 list database directory
当然这些都是一些简单的说明,db2功能大到不可想象啊。
IBM MQ是银行方提供的,但告诉了如何访问和使用。
具体数据交互是这样的:
我们写项目部署到websphere服务器,android端访问websphere服务器,websphere服务器访问IBM MQ服务器,MQ服务器访问AIX,AIX访问银行服务器,然后就是数据的回溯了。