Tomcat installation and Myeclipse integration

When the project is deployed, if the correct web server version is not selected for the web application, the application may not run normally.
jdk12 and tomcat7 crashed.
Corresponding to jdk and tomcat version

Below the title will be an example of installation and deployment of tomcat7:

Download and installation of Tomcat service:

Download address: (The download address of myeclipse2014 and tomcat software is provided at the end of the article)

https://tomcat.apache.org/download-70.cgi

Download options:
Insert picture description here

installation:

After the download is successful, it will be a compressed file, which can be used after decompression. Note: Try not to decompress it in the Chinese directory

Directory structure introduction:
\bin stores the executable files for starting and shutting down Tomcat
\conf stores the Tomcat configuration files
\lib repository files
\logs stores log files
\temp stores temporary files
\webapps stores web applications
\work stores the JSP converted Servlet file

Verify the installation:
open the bin directory, then double-click to execute the startup.bat file, open the browser and enter localhost:8080/ in the address bar. If the tomcat advertisement page appears, the installation is successful.

common problem:

1. The running of tomcat depends on JDK, and JDK environment must be configured. Refer to the configuration method: https://jingyan.baidu.com/article/6dad5075d1dc40a123e36ea3.html
2. Crash and startup crashes are generally caused by problems with the configuration of JDK environment variables. Please refer to 1 to reconfigure. If it still crashes ,
use: before the first row in the bin \ startup.bat file was added:
the SET JAVA_HOME = the JDK directory
SET CATALINA_HOME = unpacked Tomcat directory
so, you can start running tomcat server startup.bat normal, if you want to click shutdown.bat To shut down the server, add the above two lines to the shutdown.bat file.

Myeclipse integrates Tomcat:

Step 1: Select window---->preferences
Insert picture description hereStep 2:
Insert picture description hereDeploy the project to Tomcat:
Step 1:
Insert picture description hereStep 2:
Insert picture description hereStep 3:
Insert picture description hereNote: The
deployed project, just click after every change in Myeclipse ctrl+s to save, Myeclipse will automatically re-copy the file to the server and overwrite the original file on the server. Publish the project: Select the integrated tomcat in the servers window of Myeclipse and then click the start button to start:
Insert picture description herechange the project deployment name: select the project to be deployed, right-click, and select properties. Then modify the deployment name according to the picture.
Insert picture description hereXunlei download address:
https://www.baidupcs.com/rest/2.0/pcs/file?method=batchdownload&app_id=250528&zipcontent=%7B%22fs_id%22%3A%5B824387574265047%5D%7D&sign=DCb740ccc5511e5e8fedcff06b081203:kus4% =1103254313531&time=1584234729&dp-logid=1701969276044959742&dp-callid=0&vuk=1103254313531&zipname=%E8%BD%AF%E4%BB%B6.zip

Baidu Cloud:
Link: https://pan.baidu.com/s/1WhmC-5p4qD_LkDuTIFqrog
Extraction code: uhv4

Guess you like

Origin blog.csdn.net/weixin_44192389/article/details/104854428