Tomcat init.d file or startup file for CentOS 7

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

Hi Guys, I am Venkatesh. I am a programmer and an Open Source enthusiast. I write about programming and technology on this blog.

You may also like...

Leave a Reply