WAS 6.1 命令行创建profile

在AIX上安装了WAS 6.1, 在首次安装时,系统默认会提示创建一个profile。后打了相应的补丁,以后再创建profiles时,在64为平台上没有了原来的图形化工具,只能使用manageprofile.sh命令创建。 也很简单,和图形界面差不多,指定几个参数即可。
以下是创建单个profiles的命令:

./manageprofiles.sh -create -profileName AppSrv02 -templatePath /websphere/profileTemplates/default -profilePath /websphere/profiles/AppSrv02
INSTCONFSUCCESS: Success: Profile AppSrv02 now exists. Please consult /websphere/profiles/AppSrv02/logs/AboutThisProfile.txt for more information about this profile.


这样就OK了。

在生产环境中可能会需要was 集群,需要执行如下命令:
--DMGR(Server1下执行)
./manageprofiles.sh -create
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/dmgr
-nodeProfilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
-profileName Dmgr01
-cellName testCell01
-nodeName testCell01Manager01
-appServerNodeName testCell01Node01
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password
-validatePorts

--AppSer(Server1下执行)
./manageprofiles.sh -create
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/cell/default
-dmgrProfilePath /opt/IBM/WebSphere/AppServer/profiles/Dmgr01
-portsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/portdef.props
-nodePortsFile /opt/IBM/WebSphere/AppServer/profiles/Dmgr01/properties/nodeportdef.props
-profileName AppSrv01
-cellName testCell01
-nodeName testCell01Manager01
-appServerNodeName testCell01Node01
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password

--AppSer(Server2下执行)

./manageprofiles.sh -create -profileName AppSrv01
-profilePath /opt/IBM/WebSphere/AppServer/profiles/AppSrv01
-templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default
-nodeName testCell02Node01
-cellName testCell02
-isDefault
-enableAdminSecurity true
-adminUserName wasadmin
-adminPassword password
-validatePorts

上述命令参考 http://www.webspherechina.net/?562/viewspace-1138.html

已经说的比较详细了,不在赘述。
参与0

0同行回答

“答”则兼济天下,请您为题主分忧!

提问者

问题状态

  • 发布时间:2011-09-26
  • 关注会员:0 人
  • 问题浏览:3800
  • X社区推广