How to solve the problem that tomcat cannot be shut down in linux

WBOY
Release: 2021-12-27 17:37:24
Original
3356 people have browsed it

Method: 1. Use the ps command to find the current tomcat process id, the syntax is "ps -ef|grep tomcat"; 2. Use the kill command to end the tomcat process based on the id, the syntax is "kill -HUP id" ;3. Use the "./shutdown.sh" command to restart.

How to solve the problem that tomcat cannot be shut down in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to solve tomcat cannot be shut down in Linux

Execute ./shutdown in tomcat’s bin directory to close tomcat and the following problem occurs

Solution:

Execute the following command to find the current tomcat process id

ps -ef|grep tomcat
Copy after login

The red circled position is the process id

According to the found process id of tomcat, end the tomcat process through the following command

kill -3 2196
Copy after login

Enter the following command to close tomcat

./shutdown.sh
Copy after login

The following result indicates that tomcat has been closed

After shutting down, enter the following command to restart tomcat

./startup.sh
Copy after login

Started successfully

Related recommendations:《Linux video tutorial

The above is the detailed content of How to solve the problem that tomcat cannot be shut down in 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