將非 root 配置移轉至 root

先前在 7.0 版或更新版本中,您在 Linux 和 UNIX 平台上使用非 root 使用者 ID,而在 WebSphere® Application Server 9.0 版中,您可以用 root 身分來執行部署管理程式或應用程式伺服器。

開始之前

支援的配置 支援的配置:

本文討論設定檔配置的移轉。 如果要將應用程式移轉至最新的版本,請使用 WebSphere Application Server Migration Toolkit。 如需相關資訊,請參閱 WASdev 上的 Migration Toolkit

sptcfg
請參閱移轉、共存性與交互作業能力的概觀預先移轉的考量

程序

將設定檔或部署管理程式目錄的所有權設為與執行 WebSphere Application Server 的使用者相同。

必須執行這個動作,部署管理程式或應用程式伺服器才能執行正確。

以 root 使用者的身分,執行下列指令:
cd $WASROOT/profiles/  
chown -R wasadmin dmgr/  
chgrp -R wasndgrp dmgr/  
chmod -R 755 dmgr/  
... 
cd $WASROOT/profiles/dmgr/bin  
./startManager.sh
其中設定檔名稱為 dmgr,執行身分為主要群組 wasndgrpwasadmin 中的使用者。
提示: 如需相關說明,請參閱移轉的疑難排解

結果

現在,您可以使用 root 身分來執行部署管理程式或應用程式伺服器。

指出主題類型的圖示 作業主題



時間戳記圖示 前次更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=tmig_nonroot
檔名:tmig_nonroot.html