Enable Automatic startup of multiple jetty instances after startup

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.