Jetty server

1: Modify the port number

http://www.cnblogs.com/freeweb/p/5943034.html  

jetty default port is 8080, it’s easy to modify the port number, first enter the jetty server installation and directory You will see the start.ini configuration file, here is the configuration loaded when jetty starts, including the modules to be loaded, the timeout configuration, and the port number here.

   first execute vim start.ini Open the configuration file and find jetty.http The .port configuration item is a comment by default and is 8080. Now remove the comment and modify it to a custom port number, such as

  jetty.http.port=8888

  

  After modifying, save and exit, and then restart jetty to take effect

   In addition, using nginx as a front-end server proxy jetty and proxy tomcat configuration are the same

2: Advantages of jetty and tomcat< /strong>

https://www .ibm.com/developerworks/cn/java/j-lo-jetty/

jetty: simple architecture, you can load components on demand, tomcat architecture is complex and bloated

tomcat: suitable for handling frequent requests from children; jetty Suitable for handling a large number of long-term connections, like Ali Wangwang web version

Leave a Comment

Your email address will not be published.