WebSphere 安装

前言

为了代码适配Websphere,而搭建的环境

准备

  • Linux CentOS7 系统
  • WebSphere 8.5

安装IBM Installation Manager

下载IBM Installation Manager

基于IBM Installation Manager安装WebSphere,故下载


需要登录才可以下载,注册一个IBM ID就行

解压并安装
1
# unzip agent.installer.linux.gtk.x86_64_1.8.9000.20180313_1417.zip

在解压目录中执行如下命令,默认安装目录为/opt/IBM/InstallationManager

1
# ./installc -log log_file -acceptLicense

installc命令的用法详见官方文档)

安装WAS

安装WAS

下载WAS安装包(不对)

官方地址按步骤下载Linux版本的WAS。需要使用绑定了site number的IBM ID登录 IBM Passport Advantage Online website,检索Part number找到相应的文件进行下载。以WAS ND 8.5.5为例, “CIK2HML,CIK2IML,CIK2JML”对应三个文件。

解压
  1. 解压WAS安装源的压缩包

    1
    2
    3
    # unzip was.repo.8550.basetrial_part1.zip -d was/
    # unzip was.repo.8550.basetrial_part2.zip -d was/
    # unzip was.repo.8550.basetrial_part3.zip -d was/
  2. 通过IM的listAvailablePackages命令验证安装包的版本

    1
    # /opt/IBM/InstallationManager/eclipse/tools/imcl listAvailablePackages -repositories /opt/software/was/

    显示结果:com.ibm.websphere.BASETRIAL.v85_8.5.5000.20130514_1044
    输出的结果中com.ibm.websphere.BASETRIAL.v85是WAS的offering_ID,

           8.5.5000.20130514_1044是offering_version,
           在下文中更新WAS的时候会用到。
    
安装
  • 用install命令进行安装,-installationDirectory参数指定安装路径
    1
    # /opt/IBM/InstallationManager/eclipse/tools/imcl install com.ibm.websphere.BASETRIAL.v85 -repositories /opt/software/was/ -installationDirectory /opt/IBM/WebSphere/AppServer/ -acceptLicense -showProgress
  • 安装成功
  • 验证
    1
    # /opt/IBM/InstallationManager/eclipse/tools/imcl listInstalledPackages -verbose

更新WAS

配置使用

  1. 创建应用概要文件

    1
    # ./manageprofiles.sh -create -profileName AppSvr01  -profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSvr01/ -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -hostName 127.0.0.1
  2. 启动

    1
    2
    # cd /opt/IBM/WebSphere/AppServer/profiles/AppSvr01/bin
    # ./startServer.sh server1
  3. 登陆管理控制台
    查看控制台端口

    1
    2
    3
    4
    5
    6
    # more /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/config/cells/dev01Node01Cell/nodes/dev01Node01/serverindex.xml

    <specialEndpoints xmi:id="NamedEndPoint_1282247807415" endPointName="WC_adminhost_secure">
    <endPoint xmi:id="EndPoint_1282247807415" host="*" port="9060"/>
    </specialEndpoints>

    WC_adminhost_secure

参考资料

  1. 命令行方式安装IBM WebSphere Application Server
  2. WebSphere 8.5.5 静默安装及升级补丁