Tomcat init.d file or startup file for CentOS 7

Spread the love

Here is the sample Apache Tomcat startup script. move this script into the /etc/init.d/ folder.

To run the tomcat as a service use the following script and use it as the systemd service in linux server. 

Tomcat Startup Script:

Once you placed the above init.d script into /etc/init.d  folder you can control the tomcat server using the following commands.

To Start Tomcat Server:

/etc/init.d/tomcat start 

To stop or shutdown Tomcat Server:

/etc/init.d/tomcat stop

To restart Tomcat Server:

/etc/init.d/tomcat restart

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply