I just installed Tomcat 7 for my JSP projects via apt-get, so it is installed as a service. I am using Ubuntu 14.10 LTS
I run this code to install everything about Tomcat 7.0.61
sudo apt-get install tomcat7 tomcat7-docs tomcat7-examples tomcat7-common tomcat7-admin tomcat7-user
Then I found that the tomcat7, tomcat7-docs, tomcat7-examples, and tomcat7-admin files are installed in the / usr / share folder.
This completely bothers me, because I can run examples and documents via the url http: // localhost: 8080 / examples or http: // localhost: 8080 / docs
Note that the folders for examples and documents are located in / usr / share. Therefore, I feel that the / usr / share folder is my web root for Tomcat 7, because these folders are there.
However, in / var / lib / tomcat 7 /, there is a webapps folder, but when I try to put a file in a folder, the file does not work at all.
So, can anyone explain where the web folder or root folder for Tomcat is located? and how to set the path for the root folder on the Internet?
source
share