Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Wecube Platform2
Commits
53f79093
Commit
53f79093
authored
3 years ago
by
royl88
Browse files
Options
Download
Email Patches
Plain Diff
add jmx switch
parent
f6e99b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/platform-core/start_platform_core.sh
+8
-2
build/platform-core/start_platform_core.sh
with
8 additions
and
2 deletions
+8
-2
build/platform-core/start_platform_core.sh
+
8
-
2
View file @
53f79093
#!/bin/sh
#!/bin/sh
mkdir
-p
/data/wecube/log
mkdir
-p
/data/wecube/log
java
-Dcom
.sun.management.jmxremote
-Dcom
.sun.management.jmxremote.port
=
${
WECUBE_SERVER_JMX_PORT
}
-Dcom
.sun.management.jmxremote.rmi.port
=
${
WECUBE_SERVER_JMX_PORT
}
-Dcom
.sun.management.jmxremote.authenticate
=
false
\
-Dcom
.sun.management.jmxremote.ssl
=
false
-Djava
.rmi.server.hostname
=
${
WECUBE_CORE_HOST
}
-Djava
.security.egd
=
file:/dev/urandom
\
if
[
'true'
==
"
$WECUBE_SERVER_JMX
"
]
;
then
JMX_ARGS
=
"-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=
${
WECUBE_SERVER_JMX_PORT
}
-Dcom.sun.management.jmxremote.rmi.port=
${
WECUBE_SERVER_JMX_PORT
}
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"
else
JMX_ARGS
=
""
fi
java
${
JMX_ARGS
}
-Djava
.rmi.server.hostname
=
${
WECUBE_CORE_HOST
}
-Djava
.security.egd
=
file:/dev/urandom
\
-jar
/application/platform-core.jar
--server
.address
=
0.0.0.0
--server
.port
=
8080
\
-jar
/application/platform-core.jar
--server
.address
=
0.0.0.0
--server
.port
=
8080
\
--wecube
.core.s3.endpoint
=
${
S3_ENDPOINT
}
\
--wecube
.core.s3.endpoint
=
${
S3_ENDPOINT
}
\
--wecube
.core.s3.access-key
=
${
S3_ACCESS_KEY
}
\
--wecube
.core.s3.access-key
=
${
S3_ACCESS_KEY
}
\
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help