最近几天去银行做了一个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
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