Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that tomcat in linux system cannot be started

Shulou Source: shulou.com Published: 2022-06-03 01:50:28 10月22日 Update

What if the tomcat in the linux system cannot be started? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

When starting tomcat under linux, if the service startup is not successful, you can view the catalina.out log file under the logs folder. Cat my log file can get the following error message:

Cat catalina.outError: Exception thrown by the agent: java.rmi.server.ExportException: Port already in use: 8101; nested exception is:

Literally, my port 8101 is occupied, so use the command:

Netstat-anp

To see how each port is occupied by the process. The output of this command includes the pid of the process. After you get the pid, use the command:

Ps-ef | grep PID

You can view the details of the process.

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

Kill pid

Then restart tomcat!

After reading this article, can you solve the problem that tomcat in linux system cannot be started on your own? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.

Tags: Commands processes files problems systems situations logs more ports articles success helpless to this end information content reason literal this skills folders Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux OPPO Reno Xiaomi Microsoft Huawei