永发信息网

如何使用 wsadmin 脚本工具来实现将应用部署到 websphere 应用服务器

答案:1  悬赏:0  手机版
解决时间 2021-03-20 04:26
  • 提问者网友:人生佛魔见
  • 2021-03-19 21:37
如何使用 wsadmin 脚本工具来实现将应用部署到 websphere 应用服务器
最佳答案
  • 五星知识达人网友:零点过十分
  • 2021-03-19 22:13
使用wsadmin命令行工具:

set appManager [$AdminControl queryNames type=ApplicationManager,cell=$cellname,node=$nodename,process=server1,*]

This command gets the name of the application manager Mbean
for the applications running on the server.

set app [$AdminControl queryNames
type=Application,cell=$cellname,node=$nodename,process=server1,J2EEName=ivtApp,*]

This command gets the application detail and assigns it to a
variable.

set appName [$AdminControl getAttribute $app name]

This command gets the application name and assigns it to a
variable.

$AdminControl invoke $appManager stopApplication $appName
This command stops the ivtApp.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯