如果已安装了嵌入式 IBM® WebSphere® Application Server,其不会自动配置为操作系统的服务;您必须手动启动然后停止服务器。可创建一个服务用于自动为您启动服务器。
关于此任务
注: 这些命令在 AIX® 或用于 zSeries® 的 Linux® 上不起作用。
过程
为嵌入式 WebSphere Application Server 创建服务:
- 请参阅有关使用 WASService 命令的 WebSphere Application Server 文档。
- 使用以下示例命令 WASService 帮助您设置服务:
- 对于 Windows®:
WASService.exe -add RationalAssetManager -serverName server1 -profilePath "C:\Program Files\IBM\RAMServer\ram\ewas\profiles\profile1" -wasHome "C:\Program Files\IBM\RAMServer\ram\ewas" -stopArgs "-username admin -password admin" -startType automatic
- 对于 Linux:
wasservice.sh -add RationalAssetManager -serverName server1 -profilePath /opt/IBM/RAMServer/ram/ewas/profiles/profile1 -wasHome /opt/IBM/RAMServer/ram/ewas -stopArgs '-username admin -password admin'
下一步做什么
如果更改嵌入式 WebSphere Application Server 的管理安全性,那么必须以更新的用户名和密码更新服务命令。