【问题标题】:uncheck debug mode in Websphere Application Server through script通过脚本取消选中 Websphere Application Server 中的调试模式
【发布时间】:2014-06-18 10:23:20
【问题描述】:

我需要通过脚本取消选中Websphere Aplication Server调试模式,我是在Windows 2008R2 64bit上运行的WAS 7.0服务器。

【问题讨论】:

  • 欢迎user3751939!请提供更多信息并告诉我们您为解决问题所做的工作。另外请注意帮助菜单中的Tour。

标签: websphere websphere-7


【解决方案1】:

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

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

在 wsadmin 提示符中:

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

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

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

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

【讨论】:

    【解决方案2】:

    即使 Websphere 已关闭,您也可以禁用调试模式。打开这个文件:

    /usr/IBM/AppServer/profiles/<my profile>/config/cells/<my cell>/nodes/<my node>/servers/<server>/server.xml
    

    搜索节点jvmEntries,属性debugMode="true"并将其设置为false。启动 Websphere。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 2015-05-05
      • 2014-12-10
      • 1970-01-01
      • 1970-01-01
      • 2012-02-01
      • 2018-10-08
      相关资源
      最近更新 更多