You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/11/03 06:20:14 UTC

[iotdb] branch b89cf91 created (now 3906b26)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch b89cf91
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 3906b26  [IOTDB-1714] fix Could not find or load main class when start with jmx on win (#4306)

This branch includes the following new commits:

     new 3906b26  [IOTDB-1714] fix Could not find or load main class when start with jmx on win (#4306)

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: [IOTDB-1714] fix Could not find or load main class when start with jmx on win (#4306)

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch b89cf91
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 3906b2650a2298d4bd45ecbab122eccf3f810235
Author: 张正明 <87...@qq.com>
AuthorDate: Wed Nov 3 14:14:50 2021 +0800

    [IOTDB-1714] fix Could not find or load main class when start with jmx on win (#4306)
---
 server/src/assembly/resources/conf/iotdb-env.bat | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-env.bat b/server/src/assembly/resources/conf/iotdb-env.bat
index 65c1537..6a165ba 100755
--- a/server/src/assembly/resources/conf/iotdb-env.bat
+++ b/server/src/assembly/resources/conf/iotdb-env.bat
@@ -30,15 +30,15 @@ set JMX_IP="127.0.0.1"
 if %JMX_LOCAL% == "false" (
   echo "setting remote JMX..."
   @REM you may have no permission to run chmod. If so, contact your system administrator.
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.port=%JMX_PORT%"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.rmi.port=%JMX_PORT%"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Djava.rmi.server.randomIDs=true"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.ssl=false"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.authenticate=true"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.password.file=%IOTDB_CONF%\jmx.password"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Dcom.sun.management.jmxremote.access.file=%IOTDB_CONF%\jmx.access"
-  set IOTDB_JMX_OPTS="%IOTDB_JMX_OPTS% -Djava.rmi.server.hostname=%JMX_IP%"
+  set IOTDB_JMX_OPTS=-Dcom.sun.management.jmxremote^
+  -Dcom.sun.management.jmxremote.port=%JMX_PORT%^
+  -Dcom.sun.management.jmxremote.rmi.port=%JMX_PORT%^
+  -Djava.rmi.server.randomIDs=true^
+  -Dcom.sun.management.jmxremote.ssl=false^
+  -Dcom.sun.management.jmxremote.authenticate=false^
+  -Dcom.sun.management.jmxremote.password.file=%IOTDB_CONF%\jmx.password^
+  -Dcom.sun.management.jmxremote.access.file=%IOTDB_CONF%\jmx.access^
+  -Djava.rmi.server.hostname=%JMX_IP%
 ) else (
   echo "setting local JMX..."
 )