How can one restart and start Tomcat 6 on Ubuntu from the command line with a default installation?
Asked
Active
Viewed 2.4e+01k times
99
-
25`sudo service tomcat6 restart` – Marius Butuc Mar 10 '13 at 18:08
-
sudo systemctl restart tomcat6 or replace the version of your tomcat i.e tomact8 or tomcat9 or only tomcat as per your case – MindRoasterMir Dec 05 '19 at 19:01
1 Answers
134
if you are using extracted tomcat then,
startup.sh
and shutdown.sh
are two script located in TOMCAT/bin/ to start and shutdown tomcat, You could use that
if tomcat is installed then
/etc/init.d/tomcat5.5 start
/etc/init.d/tomcat5.5 stop
/etc/init.d/tomcat5.5 restart

jmj
- 237,923
- 42
- 401
- 438
-
52If tomcat was installed as a service, you can also try `service tomcat6 {stop|start|restart}` – Chris White Apr 21 '12 at 16:55
-
3@ChrisWhite How to differentiate if tomcat is installed as service or otherwise? – Gaurav Agarwal Aug 14 '12 at 12:55
-
-
-
-
you can also use $ sudo systemctl start|restart|stop tomcat6 - replace tomcat6 with your version i.e tomcat8 or tomcat9 or tomcat as per your case – MindRoasterMir Dec 05 '19 at 19:02