Create a new file to write the code to run on computer start-up:
Open a new file using the following command from terminal: sudo vi /etc/init.d/tomcat
or sudo gedit /etc/init.d/tomcat
Copy the below code in the new tomcat file opened: # Tomcat auto-start # description: Auto-starts tomcat # processname: tomcat # pidfile: /var/run/tomcat.pid export JAVA_HOME=/usr/lib/jvm/java-6-sun case $1 in start) sh /usr/local/tomcat/bin/startup.sh ;; stop) sh /usr/local/tomcat/bin/shutdown.sh ;; restart) sh /usr/local/tomcat/bin/shutdown.sh sh /usr/local/tomcat/bin/startup.sh ;; esac exit 0NOTE: change the path mentioned in above code, if the file path is different on your system.
Make the script executable by running the chmod command: sudo chmod 755 /etc/init.d/tomcat
Link this script to the startup folders with a symbolic link:
sudo ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat
sudo ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat
Restart the system and tomcat start automatically:
Open any browser and type localhost:8080/ to see the tomcat home page.
Enable Apache mod_rewrite: sudo a2enmod rewrite Set up some site folders in the Document root, for Ubuntu it is located at /var/www: Create directory: mysite.com mkdir /var/www/mysite.comNOTE: Create an index.html file in each of these folders just for testing purposes. If we open http://localhost/mysite.com from browser, we should be able to see the…
In this post we will see how SonarQube can be upgraded to the newer version, for example, upgrading SonarQube 5.2 to SonarQube 5.4. NOTE: Read upgrade notes from below link for each version upgrade to see if there are any extra steps to be taken care of. http://docs.sonarqube.org/display/SONAR/Upgrading Now below are…