Tomcat server knowledge point and tomcat knowledge point
1. Deploy and start the tomcat server
(1)decompress apache-tomcat.zip to a non-Chinese directory;
(2) configure an environment variable java_home (pointing to the jdk installation root directory) or jre_home;
(3) double-click startup. bat in the bin directory under the tomcat directory to start the server;
(4) Enter localhost: 8080 in the browser to check whether tomcat is correctly installed;
(5) If a tomcat application is started and another tomcat application is started, an exception is thrown because the same port is occupied;
2. tomcat is an open-source Servlet Container
3. You can modify the tomcat server port number by modifying the configuration in the server. xml file. Change the port value 8080 to another one, such as 8989;
4. To enable tomcat in any directory: Put the bin directory in the tomcat directory in the path of the computer's environment variable (remember to add a semicolon at the end)
Create a new catalina_home environment variable pointing to the tomcat root directory. In this way, you can enter startup in any directory to start the tomcat server and shutdown the tomcat server.
5. Read startup. bat and find that the catalina. bat file is used to start the tomcat server. The catalina has the following parameters:
Run: Start the server in the same window as catalina;
Start: start the server in a new window;
Shutdown: Shut down the server.
Note: This is only for tomcat in windows.