以下步骤描述了一个方法,来使用 IBM® i 作为安全提供方以保护 WebSphere® Application Server。
注: 您的 WebSphere Application Server 必须在运行中以完成以下步骤。此示例中的步骤适用于 WebSphere Application Server V6.1,对于 WebSphere Application Server V7.0,路径略有不同。
- 使用 cd 命令,浏览到 WebSphere Application Server 管理目录。例如:cd /QIBM/UserData/WebSphere/AppServer/V61/Base/profiles/<yourWASInstanceName>/bin。
- 使用 wsadmin 命令以启动 WebSphere Application Server 管理工具。例如:
./wsadmin
WASX7209I: Connected to process "server1" on node LOTI19 using
SOAP connector ; The type of process is: UnManagedProcess
WASX7029I: For help, enter: "$Help help"
wsadmin>
- 通过输入以下命令,以有效的用户标识和密码保护 WebSphere Application Server 概要文件:securityon <yourUserID> <yourPassword>。此用户标识和密码将用于访问安全 WebSphere Application Server 管理控制台,并有权在保护应用程序服务器之后将其停止。
- 使用 quit 命令以停止 WebSphere Application Server 管理工具。
- 要使得更改生效,您必须在 /QIBM/UserData/WebSphere/AppServer/V61/Base/profiles/<yourWASInstanceName>/bin 中使用 ./stopServer 命令停止服务器,并使用 ./startServer 命令将其重新启动。当服务器重新启动之后,会显示类似于以下内容的消息:
CPC1221: Job 107206/QEJBSVR/SERVER1 submitted to job queue QWASJOBQ in
library QWAS61.
CWNATV00I: Application server server1 in profile default has started and is
ready to accept connections on admin port 9060.