Something Different In Linux

Home » Email Marketing Series » start/stop tomcat in cpanel server

start/stop tomcat in cpanel server

Posted by Rishikesh Vispute Categories: Email Marketing Series, How to, Tomcat

How to start/stop tomcat by using  ” /etc/init.d/tomcat” command.

Ans :

1) Check  linux server  run level by using following command

who -r

If  runlevel is 3 then create the file

vi /etc/rc.d/init.d/tomcat

and add the following code


JAVA_HOME=/usr/local/jdk; export JAVA_HOME
TOMCAT_HOME=/usr/local/jakarta/tomcat; export TOMCAT_HOME
$TOMCAT_HOME/bin/ $*


Save the file and then change the permission to 755

chmod 755 /etc/rc.d/init.d/tomcat

Now you can able to start/stop tomcat by using commands

To start Tomcat :

/etc/init.d/tomcat  start

To stop Tomcat :

Please use this command 2-3 times to stop the tomcat service on the server.

/etc/init.d/tomcat   stop


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...