WAS用命令创建节点

参考事例
利用命令的方式在服务器节点1查看当前已经创建的DM和Node,然后删除DM和节点,再重新创建DM、Node;
如下图所示
cd d:\IBM\WebSphere\AppServer\bin

查看当前的DM、Node
manageprofiles.bat -listProfiles
删除profile
manageprofiles.bat -delete -profileName AppSrv01
manageprofiles.bat -delete -profileName Dmgr01

创建新profile前,需要删除文件夹!!!


利用模板创建profile dmgr
manageprofiles.bat -create -templatePath d:\IBM\WebSphere\AppServer\profileTemplates\dmgr -profileName Dmgr01 -profilePath d:\IBM\WebSphere\AppServer\profiles\Dmgr01 -enableAdminSecurity true -adminUserName admin -adminPassword 111111


利用模板创建profile server
manageprofiles.bat -create -templatePath d:\IBM\WebSphere\AppServer\profileTemplates\default -profileName AppSrv01 -profilePath d:\IBM\WebSphere\AppServer\profiles\AppSrv01 -enableAdminSecurity true -adminUserName admin –adminPassword 111111

 

在服务器节点2和3上查看、删除原有的Profiles,然后创建新的Profiles(这两个节点只创建应用服务器);
查看当前的Node
manageprofiles.bat -listProfiles
删除profile
manageprofiles.bat -delete -profileName AppSrv01
利用模板创建profile server
d:\IBM\WebSphere\AppServer\profiles\AppSrv01\bin
manageprofiles.bat -create -templatePath d:\IBM\WebSphere\AppServer\profileTemplates\default -profileName AppSrv01 -profilePath d:\IBM\WebSphere\AppServer\profiles\AppSrv01
同理进入管理控制台删除默认的server

 

manageprofiles 此命令在 websphere Application Server Network Deployment v6.1之上才有,之前的版本采用的命令为wasprofile.sh,这个需要特别注意。。
在Unix的机器上(包括AIX、HPUX)安装websphere64位的话,想要建立Profile是没有图形化界面的,需要使用manageprofiles命令,下面就详细描述一下如何使用这个命令。
1、建立DM的profile,使用的模版在{install_root}/profileTemplates/dmgr下
句法为:
manageprofile.sh -create –templatePath {install_root}/profileTemplates/dmgr
调用参数为:
-create 建立一个profile. (必选)
-templatePath 指定使用模版的路径. (必选) 建立DM的路径为{install_root}/profileTemplates/dmgr
-profileName 指定profile的名字. (可选)
-profilePath 指定proflile需要建立的路径. (可选)
-hostName 指定profile对应的主机名称. (可选)
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)
-omitAction 附加条件. (可选)
-adminUserName 在指定administrative security选项后的管理员名称. (可选)
-adminPassword 在指定administrative security选项后的管理员密码. (可选)
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)
-startingPort 制度建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选)
-enableService 作为linux的service使用,使用此参数后面跟 true. (可选)
-serviceUserName 指定作为service使用时的用户. (可选)
-webServerType 指定Web server的类型. (可选)
-webServerOS 指定Web server的操作系统的类型. (可选)
例子:
export WAS_HOME=d:\IBM
export PRO_HOME=d:\IBM\WebSphere\AppServer\profiles
以上指定websphere的安装路径和profile的路径,或者输入命令时替换
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/dmgr \
-profilePath $PRO_HOME/Dmgr01 \
-nodeName "nodename" \
-cellName "cell name" \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword password \
-profileName Dmgr01 \
-hostName `hostname` \
2、建立custom的profile,使用的模版为{install_root}/profileTemplates/managed
句法为:
manageprofile.sh -create -templatePath {install_root}/profileTemplates/managed
调用参数同上:
要联合到DM的例子
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \
-profileName AppSrv01 \
-profilePath $PRO_HOME/AppSrv01 \
-nodeName test01 \
-hostName `hostname` \
-cellName test1 \
-dmgrHost 192.168.1.100 \
-dmgrPort 8879 \
-dmgrAdminPassword password \
-dmgrAdminUserName wasadmin

不用联合到DM,而后用addNode.sh联合的例子
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \
-profilePath $PRO_HOME/AppSrv02 \
-nodeName test02 \
-cellName test2 \
-profileName AppSrv02 \
-hostName `hostname`
addNode.sh 192.168.1.100:8879 -username wasadmin -password password
3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default
句法为:
manageprofile.sh -create -templatePath install_root/profileTemplates/default
调用参数同上:例子么也就那样
4、对于集群来说,建立DM profile,然后建立多个custom的profile,addNode进去即可。或者把现有的app profile addNode到DM的概要文件中,然后通过克隆建立集群。

转载于:https://www.cnblogs.com/lyr2012/archive/2012/06/12/2546300.html

WebSphere介绍: WebSphere Studio,一个Web站点开发和设计工具包,包括项目管理,Java Servlet代码生成器,HTML写作工具,各种Script的编制工具,以及JAVA代码(Beans和Servlets)的开发工具。    WebSphere应用服务器提供三个等级的版本,它们是:    标准版(Standard Edition),是整个应用服务器家族的基础,提供从电子商务网站的建构、发布 到管理能力。标准版提供了开放、标准的平台和工具,以加速向电子商务的迁移。新加入的DB2UniversalDatabase5.2 支持,使开发者能够设计更强大有效的应用。WebSphere应用服务器标准版V1.1已经面世。包 括Servlet运行时引擎(RuntimeEngine),高性能的数据库连接程序(提供预联接,会话和状态管理的 应用服务,以及支持XML(eXtensibleMark-upLanguage)文档结构.   高级版(Advanced Edition),在标准版本的基础上,又增加了对安全性和交易处理能力的强化支持。连接已有的 数据库系统和基于主机的交易系统。并提供了复杂的工具以简化分布式组件应用的开发.   企业版(Enterprise Edition),提供了一个高可靠性的解决方案,能够将电子商务应用移植进关键性的企业环 境,起到平衡现有IT系统的作用。它组合了IBM享誉世界的交易环境TXSeries,和ComponentBroker,IBM的一个支持 完全的分布式对象访问和商务处理连接能力的产品。所有现在运行在TXSeries或ComponentBroker上的应用将在 Webshpere企业版中得到完全支持。    IBMWebSphere Performance Pack,包括eNetwork Dispatcher,Web Traffice Express 代理服务器和AFS分布式文件系统。让ISP(Internet Service Provider)和公司IT(Information Technology)专家降低 Web服务器拥塞,提高信息可获取性,改进服务器性能。 目录: WebSphere Application Server v7.1互补产品 WAS v7.0 的价值在IBM z/OS WebSphere Application Server Version 7.0 特色 WebSphere Application Server Version V7.0技术简介 WebSphere Application Server v7.0安装与迁移 WebSphere Application Server v7.0系统管理 WebSphere Application Server v7.0安全功能 WebSphere Application Server v7.0运行配置 WebSphere Application Server v7.0的价值-服务集成总线 WebSphere Application Server v7.0:IBM® Rational® Application Developer V7.5 WebSphere Application Server v7.0 附加值增强 WebSphere Application Server v7.0 特色总结 WebSphere Application Server v7.1互补产品 WAS v7.0 的价值在IBM z/OS WebSphere Application Server Version 7.0 特色 WebSphere Application Server Version V7.0技术简介 WebSphere Application Server v7.0安装与迁移 WebSphere Application Server v7.0系统管理 WebSphere Application Server v7.0安全功能 WebSphere Application Server v7.0运行配置 WebSphere Application Server v7.0的价值-服务集成总线 WebSphere Application Server v7.0:IBM® Rational® Application Developer V7.5 WebSphere Application Server v7.0 附加值增强 WebSphere Application Server v7.0 特色总结
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值