Home  >  Article  >  Operation and Maintenance  >  How to start apache tomcat in linux

How to start apache tomcat in linux

藏色散人
藏色散人Original
2019-09-29 11:24:204762browse

How to start apache tomcat in linux

How to start apache tomcat in linux?

1. Use the user who deployed tomcat at the time to connect to the remote linux operating system

How to start apache tomcat in linux

2. Enter the tomcat bin directory

cd /home/hstomcat/apache-tomcat-7.0.63/bin

Your own environment may have different installation goals, so you need to control it yourself

How to start apache tomcat in linux

3. Start tomcat

Use the ls command to see the files in the bin directory

Run the startup command script in the bin directory

sh startup.sh or ./startup.sh

This way tomcat is enabled

How to start apache tomcat in linux

#4. Check whether the tomcat process is started

Use ps aux | grep tomcat Check whether the tomcat process is started

How to start apache tomcat in linux

5. Shut down tomcat

Also in the bin directory of tomcat, use sh shutdown.sh to shut down tomcat

How to start apache tomcat in linux

6. Restart tomcat

Restarting can be understood as shutting down tomcat first and then starting tomcat

sh shutdown.sh

sh startup. sh

How to start apache tomcat in linux

The above is the detailed content of How to start apache tomcat 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