Well, in fact, I was on the rise for a while, so I wrote a blog post on these environments, hoping to take notes for myself and help some beginners, it won't be so confused about configuration. This article mainly builds an environment for Java web development.
1. Download and install Tomcat
1: http://tomcat.apache.org/download-70.cgi
2.select and download the zip package of zipw.tar.gz.
1) if the downloaded zip package is used, decompress the package directly.
2. If you download the .tar.gz package, decompress it directly.
3. Run the command
Start tomcat
Monitoring. Once the content in the file changes, it will be immediately updated and displayed.
3. decompress the package through the command and use the command directory
4. Open it directly.
5. If you want to lock it to the startup bar, refer to the last method mentioned in blog "Ubuntu environment setup series-WPS/LAMP/Python" to lock it.
6. After eclipse is enabled, open the following Server tag,
7. Select the tomcat version you want to install.
8. Click "Next", select the tomcat installation location, and click "finish.
9. Click "Run tomcat" and enter localhost: 8080 in the browser. The Error 404 is reported all the time. The tomcat management interface is not displayed. What should I do at this time? It doesn't matter. Let's take a look at the following explanation.
Iii. Problems Encountered during Environment Setup 1. Problems:
1) Enter location: 8080 to access the tomcat management interface.
2) using Eclipse + tomcat7 for project exercises, it is found that the deployed project can run normally, but the webapp under the tomcat directory cannot find the deployed Project
2. Cause
After Baidu found that the project deployed using Eclipse is not directly deployed to the tomcat webapp directory like myeclipse, but to other directories, the specific location can be seen in the settings below.
3. Solution
If you want to deploy the project to the webapps folder under the tomcat directory. We need the following configuration (note that steps 1, 2, and 3 below must be operated; otherwise, the subsequent steps will be grayed out and cannot be operated)
1) Open the Server tag. If not, open it through Window> show view> servers in the menu bar.
2) Find the tomcat to be modified and right-click the tomcat to modify it according to the sequence and operation instructions.
A. stop the tomcat server in Eclipse)
B. Delete the projects deployed on the server (add and remove)
C. clear server-related data (clear)
D. open the tomcat modification interface (open)
E. Follow the configuration in the figure below to find the servers location and select the second (User tomcat Instalation)
F. Change deploy path to webapps.
G. Save and close
4. Run tomcat again and enter localhost: 8080 in the browser. We can see the familiar tomcat interface again.