This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new b89cf91 [IOTDB-1714] fix Could not find or load main class when start
with jmx on win (#4306)
b89cf91 is described below
commit b89cf91c0c78456349e869efb97411aa01e747b9
Author: 张正明 <[email protected]>
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 100644
--- 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..."
)