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

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

使用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

按照你的说法,你使用的开发工具是eclipse或者myeclipse? 如果说是很好办,直接在项目名上右键->EXPORT->打包成war文件,把得到的项目名称war文件放到tomcat安装目录下的webapp文件夹下,然后启动tomcat就行了。
如果没有上述的IDE,会相对麻烦一些,可以百度一下,使用java自带的打包工具,将项目打成war包,然后进行上述步骤就行了。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zz/13128300.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-06-06
下一篇 2023-06-06

发表评论

登录后才能评论

评论列表(0条)

保存