Home > front end >  Consult the tomcat's relationship with project
Consult the tomcat's relationship with project

Time:12-08

Masters, there is no micro service time, if the server has multiple projects need to be released, is put in the same tomcat, put a project or a tomcat,

CodePudding user response:

Can, in the same tomcat only takes up a port number, on multiple tomcat occupy the port number,
In the multiple tomcat may solve the problem of cross-domain
In the multiple tomcat each service monopoly tomcat number of connections

CodePudding user response:

A tomcat project this idea is wrong, I this machine:

1, 2, 3 each have a project in

The admin access address: admin.xx.com
The bucket access address: pic.xx.com
Webapps access address: www.xx.com

Project of the three directory names are ROOT, they still can continue to put other items, such as there are three projects in the webapps:
ROOT access address: www.xx.com
App access address: www.xx.com/app
Mobile access address: www.xx.com/mobile

CodePudding user response:

Micro service can also, of course. But why only put a? Because micro service after is the scale of distributed project. Example: jvm1 - & gt; Tomcat1 binding services 1 (item 1), if there are multiple items on tomcat1 corresponding service (1 corresponding service no. 1, 2, 2), want to shut down one of the (item 1), can lead to other projects (service can use 2) has also been stopped
  • Related