將內嵌式 WebSphere Application Server 配置成一項服務(僅限 Windows 和 Linux)

如果您已安裝內嵌式 IBM® WebSphere® Application Server,它不會自動配置成作業系統的一項服務;您必須手動啟動及停止伺服器。 您可以建立一項服務來自動啟動伺服器。

關於這項作業

註: 這些指令在 AIX® 或 Linux for zSeries® 上無法運作

程序

如果要建立內嵌式 WebSphere Application Server 的服務,請執行下列動作:

  1. 請參閱關於使用 WASService 指令的 WebSphere Application Server 說明文件
  2. 請利用這些範例 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 的管理安全,您必須以更新的使用者名稱和密碼來更新服務指令。


意見