注意点:如下几个命令在was nd 6.0适合,6.1以及之后的版本更换成manageprofile.sh命令
--删除原有概要文件
./wasprofile.sh -deleteAll
--删除profiles下面的文件
cd /IBM/IBM/WebSphere/AppServer/profiles
rm -rf *
--创建dmgr概要文件
./wasprofile.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed -profileName AppSrvLinux -profilePath /IBM/WebSphere/AppServer -nodeName NodeLinux -cellName CellLinux -hostName '192.168.1.24'
--启动部署管理器
cd /IBM/IBM/WebSphere/AppServer/profiles/Dmgr01/bin
./startManager.sh
--创建应用服务器概要文件
./wasprofile.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/default -profileName Test -profilePath /Test/AppServer -nodeName NodeLinux -cellName CellLinux -hostName '192.168.1.24'
--非ND环境下创建Application Server Profile
./wasprofile.sh -create -templatePath /opt/IBM/WebSphere/AppServer/profileTemplates/managed -profileName AppSrvLinux -profilePath /IBM/WebSphere/AppServer -nodeName NodeLinux -cellName CellLinux -hostName '192.168.1.24'
--把受管概要文件连接到DMGR
cd /IBM/IBM/WebSphere/AppServer/profiles/AppSrvLinux/bin
./addNode.sh 192.168.159.128 8879
--把Windows机器上的概要文件连接到DMGR
addNode.sh 192.168.159.128 8879
--webserver重新添加
cp /IBM/IBM/WebSphere/Plugins/bin/configwebserver1.sh /IBM/IBM/WebSphere/AppSever/profiles/Dmgr01
/bin
cd /IBM/IBM/WebSphere/AppSever/profiles/Dmgr01/bin
./configwebserver1.sh
-- 添加webserver完成之后在管理控制台的远程 Web 服务器管理 选项当中输入./htpasswd -cm ../conf/admin.passwd admin 中输入的用户名和密码,然后启动adminServer(执行./adminctl start)即可远程启动和关闭Webserver