Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to configure MSF4J micro-service to start jar package directly

Shulou Source: shulou.com Published: 2022-05-31 21:37:31 09月22日 Update

This article will explain in detail how to configure jar package for MSF4J micro-service to start directly. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

DIRNAME= `dirname $0`PROGNAME = `basename $0`echo "$DIRNAME-$PROGNAME" INSTANCE_NAME=robot-1.0-SNAPSHOTJDK= "if [" x$JAVA "=" x "]; then if [" x$JAVA_HOME "=" x "]; then if [" $PLAT "=" HP-UX "]; then JDK=" / opt/java1.5 "fi if [" $PLAT "=" AIX "] Then JDK= "/ usr/java5" fi if ["$PLAT" = "Linux"]; then JDK= "/ usr/java/jdk1.5.0_17" fi if ["$PLAT" = "SunOS"]; then JDK= "/ usr/java/jdk1.5.0_17" fi if ["x$JDK"! = "x"] Then JAVA_HOME=$JDK JAVA= "$JAVA_HOME/bin/java" fi else JAVA= "java" fifiecho "JAVA_HOME=$JAVA_HOME" # Setup the classpathHD_PD= `pwd`runjar = "$HD_PD/$INSTANCE_NAME.jar" if [!-f $runjar] Then die "Missing required file: $runjar" fiCLASSPATH=.: $HD_PD:$runjar "echo" CLASSPATH=$CLASSPATH "JAVA_OPTS="-server-Dfile.encoding=UTF-8-Xms2048m-Xmx2048m-XX:PermSize=1024M-XX:MaxPermSize=1024m-verbose:gc-Xloggc:$HD_PD/logs/ gc.log`date +% Ymuri% mmurf% d% Hlyn% M`-XX:+UseConcMarkSweepGC-XX:+CMSIncrementalMode-XX:+PrintGCDetails-XX:+PrintGCTimeStamps-noclassgc-XX:+HeapDumpOnOutOfMemoryError-XX:HeapDumpPath=$HD_PD/dump "# debug Development tools remote debugging # java $JAVA_MEM_OPTS-agentlib:jdwp=transport=dt_socket Server=y,address=8050,suspend=y-jar $runjar > start.log & nohup java-jar $JAVA_OPTS $runjar & echo "robotMain Program running start!" ps-ef | grep $runjar on "how to configure the MSF4J micro service to start the jar package directly" this article ends here Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Tags: Articles services configuration more good practical content tools development tools articles knowledge references help development related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Docker Shulou Information Shulou Tech Info Apple