管理設定檔、WebSphere Application Server 及 IBM HTTP Server 的快速參照

本主題彙總管理設定檔及停止和啟動 WebSphere Application Server 設定檔及 IBM HTTP Server 的一般程序。

管理設定檔

表 1 包括尋找設定檔資訊(例如設定檔名稱、根目錄以及在該處部署了設定檔的埠號)的程序。也提供移除設定檔的指示。如需管理設定檔的相關資訊,請參閱 WebSphere Application Server 資訊中心 8.5 版8.0 版

表 1. WebSphere Application Server - 設定檔管理作業
作業 指示
列出 WebSphere Application Server 設定檔
若要列出伺服器上的所有設定檔,請執行下列指令:
  • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –listProfiles
  • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –listProfiles
識別 WebSphere Application Server 設定檔的根目錄

若要識別 WebSphere Application Server 設定檔的根目錄,請執行下列指令:

  • 在 Windows 上:was_install_dir>\bin\manageprofiles.bat –getPath –profileName profile
  • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –getPath –profileName profile
識別設定檔的埠

若要識別設定檔的埠,請執行下列動作:

  1. 尋找設定檔的根目錄。
  2. 開啟設定檔資訊檔案 was_profiles_dir/profile_name/logs/AboutThisProfile.txt
  3. 查看 HTTP TRANSPORT PORT 參數的值。
在 WebSphere Application Server 設定檔中尋找應用程式

若要在 WebSphere Application Server 設定檔中尋找應用程式,請執行下列動作:

  1. 使用瀏覽器連接至 WebSphere Application Server 管理主控台,以取得含有應用程式的設定檔 (http://server:port/ibm/console)。
  2. 導覽至應用程式 > 應用程式類型 > WebSphere 企業應用程式,這樣會列出應用程式。
從 WebSphere Application Server 設定檔中移除應用程式
若要在 Windows 上,從 WebSphere Application Server 設定檔中移除應用程式,請執行下列動作:
  1. 從瀏覽器中,使用下列 URL 連接至 WebSphere Application Server 管理主控台,以取得含有應用程式的設定檔:http://server:port/ibm/console
  2. 導覽至應用程式 -> 應用程式類型 -> WebSphere 企業應用程式
  3. 勾選要移除的應用程式左邊的勾選框。
  4. 按一下「解除安裝」,並確認您的動作。
  5. 將變更儲存至「主要配置」。
  6. 停止再啟動設定檔,即可套用變更。
移除 WebSphere Application Server 設定檔
若要移除 WebSphere Application Server 設定檔,請執行下列動作:
  1. 使用下列其中一個指令來刪除設定檔:
    • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –delete –profileName profile
    • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –delete –profileName profile
  2. 執行下列指令,確保從設定檔登錄中移除已刪除之設定檔的參照:
    • 在 Windows 上:was_install_dir\bin\manageprofiles.bat –validateAndUpdateRegistry
    • 在 UNIX/Linux 上:was_install_dir/bin/manageprofiles.sh –validateAndUpdateRegistry
  3. profile_dir 開始,刪除設定檔目錄樹(如果前一個動作未刪除它)。

啟動和停止 WebSphere Application Server 設定檔及 IBM HTTP Server

如需啟動和停止其他 WebSphere Application Server 及 IBM HTTP Server 特性的相關資訊,請在 WebSphere Application Server 資訊中心 8.5 版8.0 版中搜尋「啟動和停止快速參照」主題。

表 2. WebSphere Application Server - 啟動和停止程序
作業 指示
啟動 WebSphere Application Server 設定檔
註: 如果您要啟動預設 WebSphere Application Server 設定檔,則在執行這項作業時,請勿指定或選取設定檔名稱。
在 Windows 上

若要啟動 WebSphere Application Server 設定檔,請使用下列任何一種方法:

  • 跳至開始 > 程式集 > IBM WebSphere > Application Server x.x 版 > 設定檔 > profile_name > 啟動伺服器
  • 啟動與 IBM WebSphere Application Server profile 相關聯的 Windows 服務。
  • 執行此指令:was_install_dir\bin\startServer.bat server1 –profileName profile
  • 執行此指令:profile_dir\bin\startServer.bat server1
在 UNIX/Linux 上
若要在 UNIX 或 Linux 上啟動 WebSphere Application Server 設定檔,請使用下列任一指令:
  • was_install_dir/bin/startServer.sh server1 –profileName profile
  • profile_dir/bin/startServer.sh server1
停止 WebSphere Application Server 設定檔
在 Windows 上
若要停止 WebSphere Application Server 設定檔,請使用下列任何一種方法:
  • 跳至「開始 > 程式集 > IBM WebSphere > Application Server x.x> 設定檔 > profile > 停止伺服器」。
  • 停止與 IBM WebSphere x.xprofile 相關聯的 Windows 服務。
  • 執行此指令:was_install_dir\bin\stopServer.bat server1 –profileName profile
  • 執行此指令:profile_dir\bin\stopServer.bat server1
在 UNIX/Linux 上

若要停止 WebSphere Application Server 設定檔,

請使用下列任一指令:
  • was_install_dir/bin/stopServer.sh server1 –profileName profile_name
  • profile_dir/bin/stopServer.sh server1
表 3. IBM HTTP Server - 啟動和停止程序
作業 指示
啟動 IBM HTTP Server
在 Windows 上
若要在 Windows 上啟動 HTTP 伺服器,請執行下列動作:
  1. 從「開始」功能表,啟動控制台,然後跳至系統管理工具 > 服務
  2. 在「服務」頁面上,用滑鼠右鍵按一下 IBM HTTP Administration x.x。然後選取啟動
  3. 用滑鼠右鍵按一下 IBM HTTP Server x.x。選取啟動
在 UNIX/Linux 上

若要啟動 HTTP 伺服器,請執行此指令:ihs_install_dir/bin/apachectl –k start

.
停止 IBM HTTP Server

停止 IBM HTTP Server

在 Windows 上
若要停止 HTTP 伺服器,請執行下列動作:
  1. 從「開始」功能表,啟動控制台,然後跳至系統管理工具 > 服務
  2. 在「服務」頁面上,用滑鼠右鍵按一下 IBM HTTP Administration x.x。然後選取停止
  3. 用滑鼠右鍵按一下 IBM HTTP Server。選取停止
在 UNIX/Linux 上
若要停止 HTTP 伺服器,請執行此指令:ihs_install_dir/bin/apachectl –k stop

意見