转自 https://www.cnblogs.com/lgfeng/archive/2013/02/21/2921215.html

----------------------------------------------------------------------------------------------------------

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使用时的用户. (可选)

例子: 
export WAS_HOME= 
export PRO_HOME= 
以上指定websphere的安装路径和profile的路径 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/dmgr \ 
-profilePath $PRO_HOME/Dmgr01 \ 
-nodeName ecdsMng01 \ 
-cellName ecds01 \ 
-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 
调用参数为: 
-create 建立一个profile. (必选)  
-templatePath 指定使用模版的路径. (必选) 建立DM的路径为install_root/profileTemplates/managed 
-profileName 指定profile的名字. 参数可选但是如没有赋值,会使用缺省值.  
-profilePath 指定proflile需要建立的路径. 参数可选但是如没有赋值,会使用缺省值.  
-hostName 指定profile对应的主机名称.(可选)  
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)  
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)  
-federateLater 是否当时完成profile到dm的联合操作.  (可选)  
-dmgrHost 指定DM运行的服务器的ip地址.  (可选)  
-dmgrPort 指定DM运行的SOAP服务的端口.  (可选)  
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数.  (可选)  
-omitAction 附加条件. (可选)  
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)   
-dmgrAdminUserName 说明要联合到的DM的管理员名称. (可选)  
-dmgrAdminPassword 说明要联合到的DM的管理员密码. (可选)

要联合到DM的例子 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/managed \ 
-profilePath $PRO_HOME/AppSrv03 \ 
-nodeName ecdsPrd03 \ 
-cellName ecds0Y \ 
-dmgrHost 192.168.72.60 \ 
-dmgrPort 8879 \ 
-dmgrAdminPassword password \ 
-dmgrAdminUserName wasadmin \ 
-profileName AppSrv03 \ 
-hostName `hostname` \

不用联合到DM,而后用addNode.sh联合的例子 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/managed \ 
-profilePath $PRO_HOME/AppSrv02 \ 
-nodeName ecdsPrd02 \ 
-cellName ecds0X \ 
-profileName AppSrv02 \ 
-hostName `hostname`

addNode.sh 192.168.72.60 -username wasadmin -password password

3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default 
句法为: 
manageprofile.sh -create -templatePath install_root/profileTemplates/default 
调用参数为: 
-create 建立一个profile. (必选)  
-templatePath 指定使用模版的路径. (必选) 建立APP的路径为install_root/profileTemplates/default 
-profileName 指定profile的名字. 参数可选但是如没有赋值,会使用缺省值. 
-profilePath 指定proflile需要建立的路径. 参数可选但是如没有赋值,会使用缺省值. 
-hostName 指定profile对应的主机名称.(可选)  
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)  
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)  
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选) 
-enableService 作为linux的service使用,使用此参数后面跟 true. (可选)   
-webServerCheck 建立一个Web server的定义.指定值为true. (可选)   
-webServerName 指定建立的Web Server的名称. (可选) 
-webServerHostname 指定Web Server的主机名称. (可选) 
-webServerPort 指定Web server运行的端口.  (可选) 
-webServerInstallPath 指定Web server的安装路径. (可选) 
-webServerPluginPath 指定Web server插件的安装路径.(可选) 
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)  
-omitAction 附加条件. (可选)  
-adminUserName 在指定administrative security选项后的管理员名称. (可选)  
-adminPassword 在指定administrative security选项后的管理员密码. (可选)  
-serviceUserName 指定作为service使用时的用户. (可选)  
-isDeveloperServer 指定此server作为开发使用. (可选)  
-webServerType 指定Web server的类型. (可选)  
-webServerOS 指定Web server的操作系统的类型. (可选)  
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)  
-startingPort 指定建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)  
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)  
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)

例子: 
manageprofiles.sh -create \ 
-templatePath $WAS_HOME/profileTemplates/default \ 
-profilePath $PRO_HOME/AppSrv01 \ 
-nodeName ecdsPrd01 \ 
-cellName ecds0Z \ 
-enableAdminSecurity true \ 
-adminUserName wasadmin \ 
-adminPassword password \ 
-profileName AppSrv01 \ 
-hostName `hostname`

addNode.sh 192.168.72.60 -username wasadmin -password password

3、建立cell的profile,其中包含了DM和APP SERVER,使用的模版在install_root/profileTemplates/cell/dmgr(default)
句法为: 
manageprofile.sh -create -templatePath install_root/profileTemplates/cell/dmgr -nodeProfilePath install_root/profiles/AppSrv01 -cellName cell01dmgr -nodeName node01dmgr -appServerNodeName node01

manageprofile.sh|bat -create -templatePath install_root/profileTemplates/cell/default -dmgrProfilePath install_root/profiles/Dmgr01 -portsFile install_root/profiles/Dmgr01/properties/portdef.props -nodePortsFile install_root/profiles/Dmgr01/properties/nodeportdef.props -cellName cell01dmgr -nodeName node01dmgr -appServerNodeName node01调用参数为:

-create 建立一个profile. (必选)

-templatePath 指定使用模版的路径. (必选) 建立DN和APP的路径为install_root/profileTemplates/cell/dmgr(default)

建立dm部分的参数: 
-profileName 指定profile的名字. 参数可选但是如没有赋值,会使用缺省值.  
-nodeProfilePath 指定proflile需要建立的node的路径. 参数可选但是如没有赋值,会使用缺省值.  
-hostName 指定profile对应的主机名称.(可选)  
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)  
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)  
-appServerNodeName 指定app所在cell中node的名称. 参数可选但是如没有赋值,会使用缺省值.  
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选)   
-enableService 作为linux的service使用,使用此参数后面跟 true. (可选) 
-webServerCheck 建立一个Web server的定义.指定值为true. (可选)   
-webServerName 指定建立的Web Server的名称. (可选) 
-webServerHostname 指定Web Server的主机名称. (可选) 
-webServerPort 指定Web server运行的端口.  (可选) 
-webServerInstallPath 指定Web server的安装路径. (可选) 
-webServerPluginPath 指定Web server插件的安装路径.(可选) 
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)  
-omitAction 附加条件. (可选)  
-adminUserName 在指定administrative security选项后的管理员名称. (可选)  
-adminPassword 在指定administrative security选项后的管理员密码. (可选)  
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)  
-startingPort 制度建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)  
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)  
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)  
-nodePortsFile 指定node使用端口设定的文件,同-nodeStartingPort或者-nodeDefaultPorts参数冲突. (可选) 
-nodeStartingPort 指定所有的结点端口的起始的端口号. 同-nodePortsFile或者-nodeDefaultPorts参数冲突. (可选)  
-nodeDefaultPorts 对结点使用缺省的端口号.同-nodePortsFile或者-nodeStartingPort参数冲突. (可选)  
-serviceUserName 指定作为service使用时的用户. (可选)  
-webServerType 指定Web server的类型. (可选)  
-webServerOS 指定Web server的操作系统的类型. (可选)

建立app部分的参数: 
-profileName 指定profile的名字. 参数可选但是如没有赋值,会使用缺省值.  
-profilePath 指定proflile需要建立的路径. 参数可选但是如没有赋值,会使用缺省值. 
-hostName 指定profile对应的主机名称.(可选)  
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)  
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)  
-appServerNodeName 指定app server的结点名称. (可选)  
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选) 
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)  
-omitAction 附加条件. (可选)  
-adminUserName 在指定administrative security选项后的管理员名称. (可选)  
-adminPassword 在指定administrative security选项后的管理员密码. (可选)  
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)  
-startingPort 指定建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)  
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)  
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)  
-nodePortsFile 指定node使用端口设定的文件,同-nodeStartingPort或者-nodeDefaultPorts参数冲突. (可选) 
-nodeStartingPort 指定所有的结点端口的起始的端口号. 同-nodePortsFile或者-nodeDefaultPorts参数冲突. (可选)  
-nodeDefaultPorts 对结点使用缺省的端口号.同-nodePortsFile或者-nodeStartingPort参数冲突. (可选)

例子:

manageprofiles.sh -create \ 
-templatePath  $WAS_HOME/profileTemplates/cell/dmgr \ 
-profilePath   $PRO_HOME/Dmgr01 \ 
-nodeProfilePath  $PRO_HOME/AppSrv01 \ 
-cellName  ecds01 \ 
-profileName  Dmgr01 \ 
-appServerNodeName  ecdsPrd01 \ 
-nodeName  ecdsMng01 \ 
-enableAdminSecurity  true \ 
-adminUserName  wasadmin \ 
-adminPassword  password

manageprofiles.sh  -create \ 
-templatePath  $WAS_HOME/profileTemplates/cell/default  \ 
-profilePath  $PRO_HOME/AppSrv01 \ 
-dmgrProfilePath  $PRO_HOME/Dmgr01 \ 
-cellName  ecds01  \ 
-profileName  AppSrv01 \ 
-enableAdminSecurity  true \ 
-adminUserName  wasadmin  \ 
-adminPassword  password \ 
-appServerNodeName  ecdsPrd01 \ 
-nodeName  ecdsMng01

WebSphere Application Server中manageprofiles的使用的更多相关文章

  1. (转)在 WebSphere Application Server 中修改主机名称并迁移概要文件

    原文:https://www.ibm.com/developerworks/cn/websphere/techjournal/0905_webcon/0905_webcon.html 修改主机名 让我 ...

  2. 在 WebSphere Application Server V7 集群环境中管理 HTTP session[阅读]

    http://www.ibm.com/developerworks/cn/websphere/library/techarticles/1012_dingsj_wascluster/1012_ding ...

  3. 将 Spring 和 Hibernate 与 WebSphere Application Server 一起使用

    本文摘要 如果您考虑将 Spring 或 Hibernate 与 IBM® WebSphere® Application Server 一起使用,则本文向您阐述了如何配置这些框架,以适用于 WebSp ...

  4. linux/win7下安装websphere application server

    说明: 1.参考网址:http://www.ibm.com/developerworks/cn/aix/library/au-wasonlinux/ 2.在ibm官网上下载websphere appl ...

  5. WebSphere Application Server诊断和调优

    近段时间,我们项目中用到的WebSphere应用服务器(WAS),但在客户的production环境下极不稳定,经常宕机.给客户造成非常不好的影响,同时,也给项目组很大压力.为此,我们花了近一个月时间 ...

  6. Websphere Application Server 环境配置与应用部署最佳实践

    在发布一个运行于 WebSphere Application Server 的 J2EE 应用之前,对服务器进行配置和部署应用是必不可少的一个过程,这个过程是非常复杂的.WAS 为用户提供了可视化的管 ...

  7. 为WebSphere Application Server v8.5安装并配置JDK7

    IBM WebSphere Application Server v8.5可以同时支持不同版本的JDK共存,并且可以通过命令设置概要文件所使用的JDK版本.WAS8.5默认安装JDK6,如果要使用JD ...

  8. WebSphere Application Server切换JAVA SDK版本

    最近在Windows Server 2008 R2服务器中搭建了一套IHS+WAS8.5集群环境,测试一个简单的demo应用没有问题,可是在部署正式应用时总是报类版本错误.换了好几个JDK对项目进行编 ...

  9. 1、WebSphere Application Server的下载以及安装

    最近在做农行相关的项目,我们的后台需要发布到农行WebSphere Application Server上,因此学习一下: 一.WebSphere 是什么? WebSphere 为 SOA (面向服务 ...

随机推荐

  1. vue下载和上传excle数据文件,解析excel文件数据并存在数据库中

    下载: VUE: window.open("xxxx/downloadOldTaskDataFile.do_", "_blank"); JAVA: /** * ...

  2. scala 爬虫 去除不能存储的特殊字符

    scala 爬虫 去除不能存储的特殊字符 /** * 去除不能存储的特殊字符 */ def zifuChange(str: String): String = { var bo = true var ...

  3. 模板引擎Dot

    Dot.js 很轻,处理速度也快,作为将json数据赋值到html页面的最好帮手. html5新引入的<template></template>就不用原先的<script ...

  4. Mybatis if 判断等于一个字符串

    在做开发的时候遇到这样一个问题:当传入的type的值为y的时候,if判断内的sql也不会执行.   <if test="type=='y'">   and status ...

  5. 访问Nginx报错

    今天新装Nginx,一切妥善后,访问虚拟机服务器的IP,结果发现响应超时 这是因为防火墙的80端口没有打开,在新装的Linux上搭服务器一般会遇到这个问题,重新开放80端口即可解决: (1)firew ...

  6. PHP面向对象(抽象类与抽象方法、接口的实现)

    一.抽象类与抽象方法 1,任何一个类,如果它里面至少有一个方法是被声明为抽象的,那么这个类就必须被声明为抽象的. 2,定义为抽象的类不能被实例化. 3, 被定义为抽象的方法只是声明了其调用方式(参数) ...

  7. RabbitMQ系列教程之四:路由(Routing)(转载)

    RabbitMQ系列教程之四:路由(Routing) (使用Net客户端) 在上一个教程中,我们构建了一个简单的日志系统,我们能够向许多消息接受者广播发送日志消息. 在本教程中,我们将为其添加一项功能 ...

  8. 如何遍历Map对象

    方法一 通过Map.entrySet遍历key和value,在for-each循环中使用entries来遍历.推荐,尤其是容量大时 这是最常见的并且在大多数情况下也是最可取的遍历方式.在键值都需要时使 ...

  9. 学Android开发的人可以去的几个网站

    学Android开发的人可以去的几个网站 1.<IT蓝豹>Android开源项目分享平台国内非常好的一个Android开发者分享站,分享android所有特效,每天都有最新的Android ...

  10. How to fix the bug “Expected "required", "optional", or "repeated".”?

    参考:https://github.com/tensorflow/models/issues/1834 You need to download protoc version 3.3 (already ...