使用命令来创建概要文件、启动概要文件的服务器、显示服务器使用的端口以及打开管理控制台。
开始之前
本任务假设您基本熟悉本命令、其他应用程序服务器命令和系统命令。
必须安装产品,然后才能创建和使用概要文件。
关于此任务
执行以下步骤来创建概要文件、启动概要文件的服务器、显示服务器使用的端口以及打开服务器的管理控制台。
本示例处理独立应用程序服务器的概要文件环境。
过程
- 从原始安装版本创建服务器概要文件:
app_server_root\bin\manageprofiles.bat
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
app_server_root/bin/manageprofiles.sh
app_server_root/bin/manageprofiles
- 切换到新服务器概要文件的 profile_root/bin 目录。
- 启动服务器。
发出 startServer 命令。
startServer.bat server1 -profileName profile_name
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
startServer.sh server1 -profileName profile_name
![[IBM i]](../images/iseries.gif)
服务器与概要文件同名,在这种情况下为
profile_name。
startServer -profileName profile_name
注: 如果已切换到目标概要文件的 profile_root/bin 目录,那么不需要 -profileName 自变量。
- 显示端口。
在创建概要文件期间指定这些端口。
打开
profile_root\properties 目录中的 portdef.props 文件。
![[Linux]](../images/linux.gif)
![[HP-UX]](../images/hpux.gif)
![[Solaris]](../images/solaris.gif)
打开 profile_root/properties 目录中的 portdef.props 文件。
![[IBM i]](../images/iseries.gif)
使用 dspwasinst QShell 脚本来显示新概要文件的端口:
app_server_root/bin/dspwasinst -profileName profileName
列示的 WC_adminhost 和
WC_adminhost_secure 端口分别是非安全和安全的管理控制台端口。
- 打开管理控制台。
server1 管理控制台是在非安全管理控制台端口的
WC_adminhost 设置或安全管理控制台端口的 WC_adminhost_secure 设置上定义的。
例如,如果服务器的 WC_adminhost 端口值为 20003,那么在浏览器中指定以下 Web 地址:
http://host_name_or_IP_address:20003/ibm/console/
例如,如果服务器的 WC_adminhost_secure 端口值为 9061,那么在浏览器中指定以下 Web 地址:
https://host_name_or_IP_address:9061/ibm/console/
结果
您已创建应用程序服务器概要文件,启动应用程序服务器并使用浏览器来访问了管理控制台。