Multi-instance deployment of jetty8 (LT project development reference)

Source: Internet
Author: User

The EIP used by the project is run on JETTY. This article is for development and implementation reference.

  1. windows

It is easy to deploy multiple jetty8 under win. First, copy jetty8 to Multiple folders, and then modify and according to the allocated port number. If jetty in this folder is allocated with port 8888

                                                                     3000            4            false            8443        20000        5000                    

                                                                     300000            2            false        20000        5000                    

Run

java -Xms1024m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=1024m -jar start.jar

To enable remote debugging (Port 8000)

java -Xms1024m -Xmx2048m -XX:PermSize=128M -XX:MaxPermSize=1024m -Xdebug -Xrunjdwp:transport=dt_socket,address=,server=y,suspend=n -jar start.jar

 2. in LINUX

  It is a little troublesome to deploy in linux. In addition to copying the jetty directory and modifying two files, you also need to specify the directory where the pid of each instance is located.

1) Create the run directory under the jetty directory

# run

2) Enter bin, vim jetty. sh, and add JETTY_HOME, JETTY_RUN, and JETTY_HOME as the current directory of jetty.

 

Run

In addition to the preceding methods described in win, you can also run shell scripts.

# bin/jetty. start

Stop

# bin/jetty. stop

 

 

 

 

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.