tomcat cannot start under linux

王林
Release: 2019-12-03 14:24:41
Original
4121 people have browsed it

tomcat cannot start under linux

When starting tomcat under Linux, if the service fails to start, you can check the catalina.out log file in the logs folder. Cat my log file to get the following error message:

cat catalina.out
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 8101; 
nested exception is:
Copy after login

Recommended related video tutorials: linux video tutorial

Literally, my 8101 port was blocked occupied, so use the command:

netstat -anp
Copy after login

to check the status of each port occupied by the process. The output of this command includes the pid of the process. After getting the pid, use the command:

ps -ef|grep PID
Copy after login

to view Details of the process.

If you confirm that this process can be stopped, use the command:

kill pid
Copy after login

and then restart tomcat!

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of tomcat cannot start under linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template