The role of the path of tomcat
bin: Startup Items (startup.bat), close the item (shutdown.bat), the console entry in the bin
conf: This is the profile of the seat tomcat
lib: tomcat jar package depends
logs: log file location
temp: temporary file path
webapps: Path project deployment
work: cache path
In tomcat deployment project
After compiling a path to deploy
The first way
1, extract a new tomcat
2, put all things under the path of the webapps deleted (in order to avoid a conflict with your project)
3, create your own folder (ddd) (acting as project name) in the webapps path
Note: If you want to hide the name of the project, this ddd folder created as ROOT
4, find the target projects in the workspace
5, copy everything under the web path of the project file attached to ddd Step 3. Create a folder
6, the files in the project build classes folder path WEB-INF copy and paste the path to the folder ddd
7, start tomcat
The second way
1, the next item on another disk
2, opened tomcat ----> server.xml file in the conf path
3, with the following configuration before the last </ Host>
<Context path = "/ project name (not slash province)" docBase = "absolute path where the target item" />
4, start tomcat
File to war (war package) way to deploy
The third way
1, select the target project in eclipse or in myeclipse
2, the right project ----> Export ----> WAR file
3, Browse to select the save path,
The following two check boxes representing whether the source files everywhere, whether on behalf of another to overwrite the existing file, do not choose
4. Click Export finish
5, copy and paste the exported file to the next war tomcat ----> under webapps path
6, start tomcat, the war will automatically unzip the package
The fourth way
1, the war package on a further lower disc
2, opened tomcat ----> server.xml file in the conf path
3, with the following configuration before the last </ Host>
<Context path = "/ project name (not slash province)" docBase = "absolute path where the project target war package" />
Note: This war package deployed outside, the war will uncompress to a path of the webapps tomcat
Extract from the project name folder name is determined by the value of the above path
4, start tomcat