Unix的機器上(包括AIX、HPUX)managerprofile命令使用說明

在Unix的機器上(包括AIX、HPUX)安裝websphere64位的話,想要建立Profile是沒有圖形化界面的,需要使用manageprofiles命令,下面就詳細描述一下如何使用這個命令。

1、建立DM的profile,使用的模版在{install_root}/profileTemplates/dmgr下
句法為:
manageprofile.sh -create –templatePath {install_root}/profileTemplates/dmgr

調用參數為:
-create 建立一個profile. (必選)
-templatePath 指定使用模版的路徑. (必選) 建立DM的路徑為{install_root}/profileTemplates/dmgr
-profileName 指定profile的名字. (可選)
-profilePath 指定proflile需要建立的路徑. (可選)
-hostName 指定profile對應的主機名稱. (可選)
-nodeName 指定profile對應的node的名稱. 此名稱必須在同一cell中唯一. (可選)
-cellName 指定profile對應的cell的名稱. 每一個profile的cell名稱必須唯一. (可選)
-isDefault 講此profile指定為預設的profile,在運行命令期間不需要使用profileName的參數. (可選)
-omitAction 附加條件. (可選)
-adminUserName 在指定administrative security選項後的管理員名稱. (可選)
-adminPassword 在指定administrative security選項後的管理員密碼. (可選)
-portsFile 指定profile的埠設定文件. 此參數和-startingPort或-defaultPorts參數衝突. (可選)
-startingPort 制度建立profile是的所有的埠的起始的埠號. 同-portsFile或者-defaultPorts參數衝突. (可選)
-defaultPorts 對新建立的profile使用預設的埠號. 同-portsFile 或 -startingPort 參數衝突. (可選)
-validatePorts 進行埠號驗證,保證使用的埠號沒有已經被用或者被保留. (可選)
-enableAdminSecurity 新建立的profile使用用戶密碼方式認證,使用此參數後面跟 true. (可選)
-enableService 作為linux的service使用,使用此參數後面跟 true. (可選)
-serviceUserName 指定作為service使用時的用戶. (可選)

-webServerType 指定Web server的類型. (可選)
-webServerOS 指定Web server的操作系統的類型. (可選)

常式:
export WAS_HOME=
export PRO_HOME=
以上指定websphere的安裝路徑和profile的路徑,或者輸入命令時替換

manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/dmgr \
-profilePath $PRO_HOME/Dmgr01 \
-nodeName “nodename” \
-cellName “cell name” \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword password \
-profileName Dmgr01 \
-hostName `hostname` \

2、建立custom的profile,使用的模版為{install_root}/profileTemplates/managed
句法為:
manageprofile.sh -create -templatePath {install_root}/profileTemplates/managed
調用參數同上:

要聯合到DM的常式
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \

-profileName AppSrv01 \

-profilePath $PRO_HOME/AppSrv01 \
-nodeName test01 \

-hostName `hostname` \
-cellName test1 \
-dmgrHost 192.168.1.100 \
-dmgrPort 8879 \
-dmgrAdminPassword password \
-dmgrAdminUserName wasadmin

不用聯合到DM,而後用addNode.sh聯合的常式
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \
-profilePath $PRO_HOME/AppSrv02 \
-nodeName test02 \
-cellName test2 \
-profileName AppSrv02 \
-hostName `hostname`

addNode.sh 192.168.1.100:8879 -username wasadmin -password password

3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default
句法為:
manageprofile.sh -create -templatePath install_root/profileTemplates/default
調用參數同上:常式么也就那樣

4、對於集群來說,建立DM profile,然後建立多個custom的profile,addNode進去即可。或者把現有的app profile addNode到DM的概要文件中,然後通過克隆建立集群。

 

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營