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