Home>Article>Operation and Maintenance> How to check whether tomcat starts successfully in linux

How to check whether tomcat starts successfully in linux

青灯夜游
青灯夜游 Original
2022-05-24 17:13:32 12831browse

3 methods: 1. Execute "top", if the output service information contains java, the startup is successful; 2. Execute "ps -ef|grep tomcat", if the output process information contains tomcat , the startup is successful; 3. Use wget tomcat address, if the download data can appear, the startup is successful.

How to check whether tomcat starts successfully in linux

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

How to check whether tomcat starts successfully in linux

1. Use the top command

command Enter the "top" command in the line to check whether there is a java service. If there is a java service, it means tomcat is started.

How to check whether tomcat starts successfully in linux

2. Use the ps -ef|grep tomcat command

Use "ps -ef|grep tomcat" to view the process Whether there is a tomcat process started? Sometimes, although there is a tomcat process in the process, the system page is still inaccessible, and you need to check further.

How to check whether tomcat starts successfully in linux

3. Use wget tomcat access address

Use wget tomcat address. If download data can appear on the page, tomcat can work normally. access.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to check whether tomcat starts successfully in 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