六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 28|回复: 0

WAS命令行管理概要文件

[复制链接]

升级  55.67%

109

主题

109

主题

109

主题

举人

Rank: 3Rank: 3

积分
367
 楼主| 发表于 2013-2-7 03:49:50 | 显示全部楼层 |阅读模式
注意点:如下几个命令在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
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表