WAS命令行管理概要文件

注意点:如下几个命令在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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值