我是靠谱客的博主 俊秀牛排,这篇文章主要介绍[大战WEBSPHERE]WAS 自动部署脚本(for WEBTOP),现在分享给大家,希望可以做个参考。

原始脚本/说明参见 http://www.ibm.com/developerworks/websphere/library/samples/SampleScripts.html

我的上传 http://download.csdn.net/detail/haha7/4306698

环境

OS:Linux

script lang : jacl(呃。。我知道不推荐使用了)

application : webtop.war


注意

只能在Linux运行,因为只写了sh文件

目标server必须在集群中(currently only tested for AppServers connected to NetworkDeployment DeploymentManager)

只测试了非secrity server,集群版本的was很难搞到,现有的环境又更改不了(貌似6.1.0.41才能从非secrity server改成secrity server)。目测secrity下应该类  似这个样子 

"$WAS_ROOT/bin/wsadmin.sh" -username myadmin -password myadmin -f "$script"  install -pilot  false  "$configDir"  "$distDir"

本地化定制

原始脚本的war/ear包位置是固定的,我加了以下代码来指定位置

read -r distDirTemp?"Please enter the deployable path: "
distDir=`echo $distDirTemp|tr -s  ' '`

使用说明

以下文件需要自己修改,以符合自己的环境

webtop_war-pilot.settings

更改Enterprise Applications的参数。(ApplicationName,ModuleName等等)

webtop_war-pilot.targets

更改Enterprise Applications目标服务器的参数。(NodeName, ServerName, ClusterName)

webtop_war-pilot.scripts

更改目标服务器JVM设置。(NodeName,ServerName)

Deploy.sh

更改WAS_ROOT

更改预期action.比如不希望Enterprise Applications安装/更新完成后被卸载,注释/删掉

echo FOURTH  uninstall ...                                                             
  "$WAS_ROOT/bin/wsadmin.sh" -f "$script"  uninstall -pilot  true  "$configDir"  "$distDir"



最后

以上就是俊秀牛排最近收集整理的关于[大战WEBSPHERE]WAS 自动部署脚本(for WEBTOP)的全部内容,更多相关[大战WEBSPHERE]WAS内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(38)

评论列表共有 0 条评论

立即
投稿
返回
顶部