Jetty automatically starts after it starts up. This problem has plagued me for a while. Finally, I found a feasible way to share it with you.
Check the RC. Local Code. The script is automatically run when the system starts:
# System environment is essential export lang = "zh_CN.UTF-8" Export lc_all = "zh_CN.UTF-8" Path =/data/APP/Java/bin:/data/shells: $ pathjava_home =/data/APP/javaclasspath =/data/APP/Java/lib/DT. jar:/data/APP/Java/lib/tools. jarexport java_home classpath path # Java memory usage parameter export java_options = '-XX: + cmspermgensweepingenabled-XX: + cmsclassunloadingenabled-XX: permsize = 64 m-XX: maxpermsize = 128 M-xmx2048m-doptions = Server' # export jetty_user = jetty # start the first jettyexport jetty_home =/data/APP/jetty-logserverexport jetty_run =/Data /APP/jetty-logserver/logsexport jetty_logs =/data/APP/jetty-logserver/logsexport jetty_args =/data/APP/jetty-logserver/etc/jetty-logging.xml/data/APP/Jetty -logserver/bin/jetty. sh start # start the second jettysleep 1 Export jetty_home =/data/APP/jetty-game1export jetty_run =/data/APP/jetty-game1/logsexport jetty_logs =/data/APP/jetty-game1/logsexport jetty_args =/ data/APP/jetty-game1/etc/jetty-logging.xml/data/APP/jetty-game1/bin/jetty. sh start # Start another service, ulimit-shn 65535/usr/local/nginx/bin/nginx