Tomcat startup failure (flash back) solution

Double-click startup.bat in the bin directory of tomcat, and find a crash, open the script with Notepad, add "pause" to the last line, and double-click again to see the error message: jre environment variable has not been set,

so Set the environment variable named JRE_HOME (the variable value is the path where jre is located, for example, mine is in C:\Program Files\Java\jre1.8.0_271). Restart tomcat found that the problem was solved, localhost:8080 can be accessed normally

Guess you like

Origin blog.csdn.net/kitahiragawa/article/details/111874009