當啟動應用程式伺服器時,除了會啟動應用程式伺服器外, 還會啟動在該應用程式伺服器內執行的任何應用程式。當您啟動應用程式伺服器時, 要注意的是,儘管應用程式伺服器順利啟動, 在該應用程式伺服器內執行的應用程式不見得順利啟動。
重要事項:請勿以 root 身分啟動 WebSphere Commerce 或 WebSphere Commerce Payments 應用程式伺服器。以 root 身分啟動這些應用程式伺服器, 會改變對重要檔案的許可權,而可能導致 WebSphere Commerce 與 WebSphere Commerce Payments 運作不當。
如果要啟動應用程式伺服器,請執行下列步驟:
- 確定您的資料庫管理系統已啟動。
- 在終端機視窗中發出下列指令:
su - WAS_user cd WAS_installdir/bin ./startServer.sh server_name
其中:
- WAS_user
- WebSphere Application Server 使用者 ID。預設 WebSphere Application Server 使用者 ID 為 wasuser
- WAS_installdir
- WebSphere Application Server 的安裝目錄。
- server_name
- 您想啟動的應用程式伺服器名稱。此參數有區分大小寫 - 請確定應用程式伺服器名稱拼字中的大小寫正確。
應用程式伺服器的名稱如下:
應用程式 應用程式伺服器名稱 WebSphere Commerce WC_commerce_instance_name WebSphere Commerce Payments payments_instance_name_Commerce_Payments_Server 其中 commerce_instance_name 為 WebSphere Commerce 實例的名稱, payments_instance_name 為 WebSphere Commerce Payments 實例的名稱。
預設 WebSphere Commerce 實例名稱為 demo,因此 預設 WebSphere Commerce 應用程式伺服器的名稱為 WC_demo。
WebSphere Commerce Payments 實例的預設名稱為 wpm, 因此預設 WebSphere Commerce Payments 應用程式伺服器的名稱為 wpm_Commerce_Payments_Server。
當出現下列訊息時,表示應用程式伺服器已順利啟動:
伺服器 server_name 已開啟以進行電子商務
- 檢查應用程式伺服器日誌檔, 確定應用程式伺服器以及在應用程式伺服器內執行的應用程式已啟動, 且未發生任何錯誤。
如果要停止應用程式伺服器,請執行下列步驟:
- 在終端機視窗中發出下列指令:
su - WAS_user cd WAS_installdir/bin ./stopServer.sh server_name
其中:
- WAS_user
- WebSphere Application Server 使用者 ID。預設 WebSphere Application Server 使用者 ID 為 wasuser
- WAS_installdir
- WebSphere Application Server 的安裝目錄。
- server_name
- 您想停止的應用程式伺服器名稱。此參數有區分大小寫 - 請確定應用程式伺服器名稱拼字中的大小寫正確。
應用程式伺服器的名稱如下:
應用程式 應用程式伺服器名稱 WebSphere Commerce WC_commerce_instance_name WebSphere Commerce Payments payments_instance_name_Commerce_Payments_Server 其中 commerce_instance_name 為 WebSphere Commerce 實例的名稱, payments_instance_name 為 WebSphere Commerce Payments 實例的名稱。
預設 WebSphere Commerce 實例名稱為 demo,因此 預設 WebSphere Commerce 應用程式伺服器的名稱為 WC_demo。
WebSphere Commerce Payments 實例的預設名稱為 wpm, 因此預設 WebSphere Commerce Payments 應用程式伺服器的名稱為 wpm_Commerce_Payments_Server。
當出現下列訊息時,表示應用程式伺服器已順利停止:
伺服器 server_name 已順利停止
- 檢查應用程式伺服器日誌檔, 確定應用程式伺服器以及在應用程式伺服器內執行的應用程式已停止, 且未發生任何錯誤。