1. Decompress the jdk.tar.gz instruction.
2. Open the configuration file related to the system.
3. Add JAVA_HOME, PATH and CLASSPATH to the configuration file just now (:wq saves and exits).
4. Test the configuration
If it has been modified and reapplied.
5. Decompress tomcat (in the same way), change the 8080 of /conf/server.xml to 80 (I just don't want to add ports, and 80 ports are idle), and execute the instruction to start tomcat in the tomcat directory (use log to start, and Ctrl+C can exit the log).
6. The external network tests whether tomcat is started normally.
(This block should ensure that the server has an open port. If the environment is different, such as linux and firewall, this paper only records the simplest successful operation, and the specific failure depends on the environmental factors first, so I won't describe it here. )
7. Other related operations
Of course, the above has actually succeeded, but in fact we may need to close it. Some people say it's best not to turn off your phone, but to kill it. I'm not sure about it. We haven't delved into it yet, so let's close it with kill.
View process: