Home  >  Article  >  Operation and Maintenance  >  tomcat cannot start under linux

tomcat cannot start under linux

王林
王林Original
2019-12-03 14:24:414129browse

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:

Recommended related video tutorials: linux video tutorial

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

netstat -anp

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

to view Details of the process.

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

kill pid

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!

Statement:
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