Monday, 5 September 2016

Automatic startup of Apache Tomcat server in ubuntu on system startup

Apache tomcat server is used to run JSP/Servlet applications. When we install tomcat in Ubuntu/Linux it does not start automatically on system startup. We have to start it manually after system startup. In windows machine it is very simple to start Tomcat on system startup. We can just configure the tomcat service to automatic and it starts on system startup, But when we use tomcat in Ubuntu/Linux, it becomes sometime complex to start tomcat in system startup.

Some people suggest write to shell script to start tomcat, writing shell script is again complex. I have applied many methods to start tomcat in Ubuntu automatically, but I found this method is very simple to start Tomcat in Ubuntu.

Go to rc.local file in etc in root folder and open it with root privileges. Write the startup.sh path in this file and save.

sleep 10
/home/arvind/apache-tomcat-8.0.32/bin/startup.sh


No comments:

Post a Comment

Change image source dynamically on hyperlink

 Changing image source dynamically using JQuery. Here in this example I have created there hyperlink and stored all images in the same folde...