Possible Cause (port problem) Tomcat execution startup.bat appear flash back

Problem Description:

        After re-extracting Tomcat, click startup.bat appear flash back. Here are solutions I searched online.

 

1, the port is occupied. Tomcat installation directory to the logs folder to view the log file (.log end) to see whether there is

       严重: StandardServer.await: create[8080]: 
        java.net.BindException: Address already in use: JVM_Bind

 

Solution: Open cmd, enter netstat -ano, see occupancy all ports, find the PID occupied port 8080 is 4196

"Taskbar" right click select "Task Manager", click on "details" to find PID 4196 as a process, right-click to kill the process. Click to go startup.bat. To see if still flash back.

 

2, then startup.bat edit, the following is added at the beginning of the file content, determined according to the specific location of their installation.

Adding "pause" start.bat at the end of this document, the purpose is to allow the execution of code file does not withdraw immediately. Save changes after a good, if the error code does not appear, then the problem is solved, the "pause" to remove, in the address bar of your browser "http: // localhost: 8080", there will be a kitten interface .

 

3, configured java environment variables

4. If the above problems are solved, in the address bar of your browser "http: // localhost: 8080", if there is a kitten interface, it shows that the problem has been resolved, but if you still have problems, just follow the above method to check to see where the error occurred. When the premise of open startup.bat URL is already running. It still can not display properly.

 

 

发布了68 篇原创文章 · 获赞 57 · 访问量 3万+

问题描述:

Guess you like

Origin blog.csdn.net/weixin_43206161/article/details/104401688