概要文件(profile)
6.0版本以后才有profile,目的是将用户数据和was本身的文件分开,这样可以定义多个profile,每个profile相当于一个用户,相当于提供了多用户的支持。
profile的命令说明:
新建:
wasprofile.sh -create 
               -profileName profile_name 
               -profilePath fully_qualified_profile_path 
               -templatePath template_path 
               -nodeName node_name 
               -cellName cell_name 
               -hostName host_name 
               -server  iSeries_server_name
              [-startingPort starting_port | -portsFile filepath]
               -winserviceCheck true | false
               -winserviceAccountType specifieduser | localsystem
               -winserviceUserName yourusername
               -winservicePassword yourpassword
               -winserviceStartupType manual | automatic | disabled
              [-debug]
列出现有的概要文件:
#./wasprofile.sh -listProfiles
删除概要文件:
#./wasprofile.sh -delete 
                 -profileName profile_name | -profilePath profile_path 
                [-debug]
从路径获取现有概要文件的名称:
# ./wasprofile.sh -getName 
                  -profilePath profile_path 
                 [-debug] 
从名称获取现有概要文件的路径:
# ./wasprofile.sh -getPath 
                  -profileName profile_name 
                 [-debug] 
检查概要文件注册表的完整性:
# ./wasprofile.sh -validateRegistry 
                 [-debug] 
检查概要文件注册表的完整性,除去未找到的概要文件:
# ./wasprofile.sh -validateAndUpdateRegistry 
                  [-backup file_name] 
                  [-debug]
举例:
 ./wasprofile.sh \
 -create -profileName test4sop \
 -profilePath /websphere/AppServer/profiles/test4sop \
 -templatePath /websphere/AppServer/profileTemplates/default \
 -nodeName test4sopnode \
 -cellName test4sopcell \
 -hostName S2_E_YZ_JKCS
 ./wasprofile.sh -delete -profileName test4sop        
集群profile:
如果应用比较简单,只需要一个server就可以了,新建一default型的profile之后,之后就可以在控制台上做应用部署之类的.
应用比较复杂时需要构建集群,集群的profile和普通的点不同.
不同在于:
   -templatePath /websphere/AppServer/profileTemplates/default \  
如果参数是default,说明是普通的单server,
如果是managed,说明该profile是托管的. 
如果是dmgr,说明该profile是dm(部署管理器)类型的.
将managed的profile加入dmgr管理需要用命令:
 ./addMode.sh IP(dm的IP) 8879(如果没有更改的话)
移出的命令:
 ./removeNode.sh
之后启动DM和Node,就可以在控制台上做集群搭建之类的操作了,此时控制台地址是dm的地址,端口默认是9060.
 2.Cell,Node,Server
 Cell是个分组的概念,Cell下面可以有多个Node.
 Node相当于一个或者一组server的分组.Node不能跨物理机器.一个Node下面可以有多个server.
 Server是实际的处理单元,一个server就是一个J2EE容器.
Node和profile比较类似,基本上等同,不过Node是管理上使用的,profile起基础配置作用,一个profile相当于一个node.
 DM是通过Node agent来管理各个server实例的.
原文:http://www.cnblogs.com/gdou123czh/p/3957941.html