从命令行将 EAR 文件部署到 WAS 7
我需要将位于服务器 A 中的 EAR 文件部署到位于服务器 B 中的 WebSphere 服务器。我需要知道如何通过命令行将 EAR 从服务器 A 部署到我的 WAS。我已经在网上搜索过,但只找到了 WAS 6 的结果(我有 WAS 7)。 有谁知道如何通过命令行将 EAR 部署到 WAS(在另一台服务器中)?
I need to deploy an EAR file that is located in sever A to a WebSphere Server located in server B. I need to know how to deploy the EAR from server A to my WAS through command line. I have seared the web but found results only fro WAS 6 (i have WAS 7).
does any one know how to deploy an EAR to WAS (in a different server) through command line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设两台服务器都是独立的。如果是这样,请在服务器 A 上使用 WAS_HOME/bin/wsadmin,并为服务器 B 指定 RMI 主机/端口。如果没有,请指定 serverB 的 Deployment Manager 的主机/端口。
注意,这是 UNIX 语法;对于 Windows 语法,请使用“双引号”。或者,您可以省略 -c 并使用交互模式,也可以使用 -f file.jacl。 Jython 脚本可与 -lang jython 一起使用。请参阅以下内容以了解 AdminApp 安装选项(例如,-appname 或 -usedefaultbindings):
http://publib.boulder.ibm.com/infocenter/wasinfo/fep/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rxml_taskoptions.html
I assume both servers are standalone. If so, use WAS_HOME/bin/wsadmin on server A, and specify the RMI host/port for serverB. If not, specify the host/port of the deployment manager for serverB.
Note, this is UNIX syntax; for Windows syntax, use "double quotes". Alternatively, you can omit the -c and use interactive mode, or you can use -f file.jacl. Jython scripting is available with -lang jython. See the following for AdminApp install options (e.g., -appname or -usedefaultbindings):
http://publib.boulder.ibm.com/infocenter/wasinfo/fep/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rxml_taskoptions.html
您确实应该考虑使用节点代理,这将使所有这些问题消失。我假设您不在集群环境中,否则只需简单地推送和同步节点代理就可以解决问题。
上面的答案是正确的,但您也可以简单地将要部署到 serverB 的包通过 FTP 传输,然后也使用 wsadmin 进行本地安装。
You should really consider a nodeagent, that would make all of this go away. I'm assuming you're not in a clustered environment, otherwise a simple push to and synch of a nodeagent would do the trick.
The answer above is correct, but you could also simply FTP the package to be deployed to serverB and just use wsadmin to install locally, as well.