7.was8.5安装--创建dmgr、Nodeagent

因为我们在安装的过程中没有创建概要文件,所以在此我们来手工创建概要文件。概要文件又分为部署管理器概要文件(Deployment Manage Profile)和应用程序服务器概要文件(Application Server Profile)两种,

说明:因为此时是64位安装版本,只能使用/optwas/IBM/WebSphere/AppServer/bin/manageprofiles.sh命令行创建概要文件

8.1 创建Deployment Manage Profile

进入/optwas/IBM/WebSphere/AppServer/bin目录执行命令

./manageprofiles.sh -create -profileNname Dmgr01 -profilePath /optwas/IBM/WebSphere/AppServer/profiles/dmgr -templatePath /optwas/IBM/WebSphere/AppServer/profileTemplates/dmgr -nodeName DMNode01 -cellName Cell0 -hostName test216 -enableAdminSecurity true -adminUserName admin -adminPassword admin

创建一个名为Dmgr01的部署管理概要文件



 

得到如下图提示,表示概要文件创建成功



 

部署管理器概要文件创建成功以后,启动该管理器,即可在页面登录WAS控制台了。

进入/optwas/IBM/WebSphere/AppServer/profiles/dmgr/bin目录,执行./startManager.sh命令启动控制台。

然后在IE界面输入URL http://158.222.2.216:9060/admin打开控制台界面如下所示


此概要文件只需在216上创建,215上是不需要此概要文件的。

8.2 创建Application Server Profile

216上同样进入目录/optwas/IBM/WebSphere/AppServer/bin,执行命令

./manageprofiles.sh -create -profileNname Appserv01 -profilePath /optwas/IBM/WebSphere/AppServer/profiles/Appserv01 -templatePath /optwas/IBM/WebSphere/AppServer/profileTemplates/default -nodeName AppNode01 -hostName test216 -enableAdminSecurity false

创建一个名为Appserv01的应用程序服务器概要文件


 得到如下图提示,表示概要文件创建成功



 

同样的方法在215上创建名为Appserv02的应用程序服务器概要文件

这里给出215上创建概要文件的命令脚本

./manageprofiles.sh -create -profileNname Appserv02 -profilePath /optwas/IBM/WebSphere/AppServer/profiles/Appserv02 -templatePath /optwas/IBM/WebSphere/AppServer/profileTemplates/default -nodeName AppNode02 -hostName test215 -enableAdminSecurity false

8.3 将创建的概要节点添加到控制台

创建好了节点(概要文件),接下来就是要将这些应用程序服务器节点添加到部署管理器节点下,这样才可以在控制台统一管理这些节点。

216服务器上切换到目录/optwas/IBM/WebSphere/AppServer/profiles/Appserv01/bin下,执行命令

./addNode.sh test216 8879 -username admin -password adminAppserv01节点添加到控制台,输出如下图所示。



 

说明:添加之前必须首先要确保控制台节点已经启动,可以通过执行/optwas/IBM/WebSphere/AppServer/profiles/dmgr/bin/startManager.sh启动。

这里test216代表所要连接的控制台主机名,8879代表Dmgr_SOAP端口号,这个可以在/optwas/IBM/WebSphere/AppServer/profiles/dmgr/logs目录下的AboutThisProfile.txt文件中查看。

同样的方法将215服务器上的Appserv02节点添加到控制台。

知识补充关于NodeProfileServer

这三个概念比较容易混淆,我们拿出来对比说明:Node=ProfileNode是管理上使用的概念,Profile是实际的概要文件,它们代表同一事物。Server 就是所谓的 Application Server Instance , 这是我们实际要布署 Application 的地方。在IBM WAS ND 产品中受管节点的Node Agent 目的就是让 Deployment Manager Server 可以透过 Node Agent 来管 Node (Profile) 中的 Application Server Instance,一个 Node (Profile) 中可以有多个 Application Server Instance。如果是非ND版本 , 则属于 Single Server 版本,那么一个 Node (Profile) 中只能有一个 Application Server Instance,如果你希望在一台机器上有多个 Application Server Instance,那就只能透过创建多个 Profile (Node) 来达成,但这些 Node (Porfile) 彼此独立没有管理上的关系 (RelationShip),只要使用的 TCP/IP Port 不要冲突即可。

 

 

猜你喜欢

转载自hui8080.iteye.com/blog/2316514