• <i id='55cUf'><tr id='55cUf'><dt id='55cUf'><q id='55cUf'><span id='55cUf'><b id='55cUf'><form id='55cUf'><ins id='55cUf'></ins><ul id='55cUf'></ul><sub id='55cUf'></sub></form><legend id='55cUf'></legend><bdo id='55cUf'><pre id='55cUf'><center id='55cUf'></center></pre></bdo></b><th id='55cUf'></th></span></q></dt></tr></i><div id='55cUf'><tfoot id='55cUf'></tfoot><dl id='55cUf'><fieldset id='55cUf'></fieldset></dl></div>

    <tfoot id='55cUf'></tfoot>

      1. <small id='55cUf'></small><noframes id='55cUf'>

          <bdo id='55cUf'></bdo><ul id='55cUf'></ul>
        <legend id='55cUf'><style id='55cUf'><dir id='55cUf'><q id='55cUf'></q></dir></style></legend>

        如何使用 JAVA_OPTS 环境变量?

        How do I use the JAVA_OPTS environment variable?(如何使用 JAVA_OPTS 环境变量?)

                <tbody id='F6okZ'></tbody>
              <tfoot id='F6okZ'></tfoot>

              <legend id='F6okZ'><style id='F6okZ'><dir id='F6okZ'><q id='F6okZ'></q></dir></style></legend>
            1. <small id='F6okZ'></small><noframes id='F6okZ'>

                <bdo id='F6okZ'></bdo><ul id='F6okZ'></ul>
                <i id='F6okZ'><tr id='F6okZ'><dt id='F6okZ'><q id='F6okZ'><span id='F6okZ'><b id='F6okZ'><form id='F6okZ'><ins id='F6okZ'></ins><ul id='F6okZ'></ul><sub id='F6okZ'></sub></form><legend id='F6okZ'></legend><bdo id='F6okZ'><pre id='F6okZ'><center id='F6okZ'></center></pre></bdo></b><th id='F6okZ'></th></span></q></dt></tr></i><div id='F6okZ'><tfoot id='F6okZ'></tfoot><dl id='F6okZ'><fieldset id='F6okZ'></fieldset></dl></div>
                • 本文介绍了如何使用 JAVA_OPTS 环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何使用 JAVA_OPTS 变量来配置 Web 服务器(Linux 服务器)?

                  How do I use the JAVA_OPTS variable to configure a web server (a linux server)?

                  如何使用 JAVA_OPTS 设置 -Djava.awt.headless=true?

                  推荐答案

                  JAVA_OPTS 是一些服务器和其他 java 应用程序附加到执行 java 的调用的标准环境变量代码>命令.

                  JAVA_OPTS is the standard environment variable that some servers and other java apps append to the call that executes the java command.

                  例如在tomcat中定义JAVA_OPTS='-Xmx1024m',启动脚本会执行java org.apache.tomcat.Servert -Xmx1024m

                  For example in tomcat if you define JAVA_OPTS='-Xmx1024m', the startup script will execute java org.apache.tomcat.Servert -Xmx1024m

                  如果你是在 Linux/OSX 上运行,你可以在调用启动脚本之前设置 JAVA_OPTS

                  If you are running in Linux/OSX, you can set the JAVA_OPTS, right before you call the startup script by doing

                  JAVA_OPTS='-Djava.awt.headless=true'
                  

                  这只会在控制台打开时持续.要使其更永久,您可以将其添加到您的 ~/.profile 或 ~/.bashrc 文件中.

                  This will only last as long as the console is open. To make it more permanent you can add it to your ~/.profile or ~/.bashrc file.

                  这篇关于如何使用 JAVA_OPTS 环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                    <tbody id='ryt3s'></tbody>
                  <tfoot id='ryt3s'></tfoot>
                • <i id='ryt3s'><tr id='ryt3s'><dt id='ryt3s'><q id='ryt3s'><span id='ryt3s'><b id='ryt3s'><form id='ryt3s'><ins id='ryt3s'></ins><ul id='ryt3s'></ul><sub id='ryt3s'></sub></form><legend id='ryt3s'></legend><bdo id='ryt3s'><pre id='ryt3s'><center id='ryt3s'></center></pre></bdo></b><th id='ryt3s'></th></span></q></dt></tr></i><div id='ryt3s'><tfoot id='ryt3s'></tfoot><dl id='ryt3s'><fieldset id='ryt3s'></fieldset></dl></div>

                      • <bdo id='ryt3s'></bdo><ul id='ryt3s'></ul>

                          <legend id='ryt3s'><style id='ryt3s'><dir id='ryt3s'><q id='ryt3s'></q></dir></style></legend>

                          <small id='ryt3s'></small><noframes id='ryt3s'>