weblogic指令碼工具WLST(1)

Davis_itpub發表於2018-06-27

1. 進入目錄, 比如 
cd  /ebs_nas/oracle/Middleware/wlserver_10.3/common/bin

2. 啟動指令碼工具 WLST
$ ./wlst.sh 
wls:/offline> exit() 退出

3. 連線節點管理器(NodeManager)和weblogic伺服器(console)
wls:/offline>  nmConnect("weblogic","webl0gic","localhost","5557","mydomain",
               "/opt/appsvr/product/wls_103/user_projects/domains/mydomain","plain")
 
wls:/offline>  connect('weblogic','webl0gic', localhost.com:7001')
 
4. 執行如下命令產生金鑰檔案,注意修改相應的目錄
wls:/offline> storeUserConfig('/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',
              '/opt/appsvr/product/wls_103/user_projects/domains/mydomain /keyfile.secure')
 
 
5.怎麼使用這些金鑰檔案 
連線節點管理器
nmConnect (userConfigFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',
           userKeyFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/keyfile.secure',
           host='localhost',port='5557',domainName='mydomain',
           domainDir='/opt/appsvr/product/wls_103/user_projects/domains/mydomain',nmType='plain')

連線weblogic console伺服器
connect(userConfigFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/configfile.secure',
        userKeyFile='/opt/appsvr/product/wls_103/user_projects/domains/mydomain/keyfile.secure',
        url='localhost':7001')

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31520497/viewspace-2156796/,如需轉載,請註明出處,否則將追究法律責任。

相關文章