通过脚本取消选中Websphere Application Server中的调试模式

时间:2014-06-18 10:23:21

标签: websphere websphere-7

我需要通过脚本取消选中Websphere Application Server调试模式,在#39; m WAS 7.0服务器上运行Windows 2008R2 64位。

1 个答案:

答案 0 :(得分:0)

您应该在配置文件bin目录中运行wsadmin:

wsadmin.bat -lang jython -user *** -password ***

和wsadmin promt:

AdminTask.setJVMProperties('[-nodeName node01 -serverName server1 -debugMode false]')
AdminConfig.save()

替换节点和服务器名称,并选择true为false。

您可以将此脚本作为文件运行。只需添加这两行,例如debugOff.py并将其命名为

wsadmin.bat -lang jython -user *** -password *** -f [real-path-to]/debugOff.py
相关问题