In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.