简体   繁体   English

如何编辑Weblogic启动脚本以启用JMX?

[英]How to edit Weblogic startup scripts to enable the JMX?

I am new to Weblogic. 我是Weblogic的新手。 And I want to enable the JMX on Weblogic 12c. 我想在Weblogic 12c上启用JMX。 As I searched on stackoverflow, I found this: 当我搜索stackoverflow时,我发现了这一点:

Add the following JVM parameters to your Weblogic startup scripts: 将以下JVM参数添加到Weblogic启动脚本中:

 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8888 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false 

However I couldn't find this script. 但是我找不到此脚本。 So where is it? 那在哪呢 Thank you very much! 非常感谢你!

There are a few weblogic startup (and shutdown scripts), one for Windows (ending in "cmd") and one for Unix/Linux (ending in "sh"). 有几种weblogic启动(和关闭脚本),一种用于Windows(以“ cmd”结尾),一种用于Unix / Linux(以“ sh”结尾)。 The filename begins startWebLogic and it was installed in your weblogic/bin folder. 文件名以startWebLogic开头,并已安装在weblogic/bin文件夹中。

Per the documentation (linked above), 根据文档(以上链接),

The startWebLogic script does the following: startWebLogic脚本执行以下操作:

Sets environment variables by invoking DOMAIN_NAME\\bin\\setDomainEnv.cmd (setDomainEnv.sh on UNIX), where DOMAIN_NAME is the directory in which you located the domain; 通过调用DOMAIN_NAME \\ bin \\ setDomainEnv.cmd(在UNIX上为setDomainEnv.sh)来设置环境变量,其中DOMAIN_NAME是域所在的目录; for example, WL_HOME\\user_projects\\domains\\DOMAIN_NAME, and where WL_HOME is the location in which you installed WebLogic Server. 例如WL_HOME \\ user_projects \\ domains \\ DOMAIN_NAME,其中WL_HOME是WebLogic Server的安装位置。

Invokes the java weblogic.Server command, which starts a JVM that is configured to run a WebLogic Server instance. 调用java weblogic.Server命令,该命令启动配置为运行WebLogic Server实例的JVM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM