【发布时间】:2016-05-27 11:54:37
【问题描述】:
我正在尝试使用 Deployment Manager 将应用程序自动部署到新安装的 Websphere ND。 这就是我刚刚所做的:
- 安装 WebSphere
- manageProfiles create, profile name="deployer", template = management, profile type = DEPLOYMENT_MANAGER, cell="ndcell", node="ndnode"
- manageProfiles 创建,配置文件名称="app",模板 = 默认,单元格 = knowncell,节点 = knownnode
- AppServer/profiles/deployer/bin/startManager.sh
- AppServer/profiles/app/bin/addNode.sh 主机名(这都发生在同一个主机“主机名”上)
- AppServer/bin/wsadmin -c '$AdminConfig modify [$AdminConfig showAttribute [$AdminConfig getid /Cell:ndcell] monitorDirectoryDeployment] {{enabled true}}' - 开启监控目录部署
- AppServer/bin/wsadmin -c '$AdminConfig 保存'
- AppServer/profiles/deployer/bin/stopManager.sh,然后是 startManager.sh
好的,此时管理控制台显示了一个未启动的服务器“server1”,并且存在目录 AppServer/profiles/deployer/monitoredDeployableApps,这是好的部分。不好的部分是目录是空的!那里没有“server1”目录,应该是,把我的 EAR 放进去。
我错过了什么?
【问题讨论】:
-
我假设“cell = knowncell, node = knownnode”你的意思是“cell = ndcell, node = ndnode”?
-
不,这是不同的单元格/节点。在 addNode 上,节点无论如何都会被注入到 ndcell 中,不是吗?我想如果我最初在 ndcell 中创建 server1,将其添加到单元格中将没有任何意义,因为它已经在该单元格中。我弄错了吗?
-
但是现在想想,执行addNode是否意味着“app”配置文件现在属于cell ndcell而不是knowncell?
标签: websphere websphere-8