2. Once latest Java installed and configured correctly on the system, we will move forward to download and install latest stable version of Tomcat 8 (i.e. 8.0.23). If you want to cross check, if any newer version available, go to following Apache download page and cross check.
https://tomcat.apache.org/download-80.cgi
3. Next create a /opt/tomcat/ directory and download the latest version of Apache Tomcat 8 under this directory, also for cross checking the download file, we will be downloading hash file. The download will take some time depending upon your connection speed.
# mkdir /opt/tomcat/ && cd /opt/tomcat
# wget https://www.interior-dsgn.com/apache/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.zip
# wget httpss://www.apache.org/dist/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.zip.md5
Note: Make sure to replace the version number in the above download link with the latest version available if it was different.
4. Now verify the MD5 Checksum against the key.
# cat apache-tomcat-8.0.23.zip.md5
# md5sum apache-tomcat-8.0.23.zip
5. Extract the Tomcat zip and cd to ‘apache-tomcat-8.0.23/bin/‘ directory.
# unzip apache-tomcat-8.0.23.zip
# cd apache-tomcat-8.0.23/bin
6. Now make Linux scripts executable that is under ‘apache-tomcat-8.0.23/bin/‘ and then create symbolic link of startup and shutdown script for tomcat as:
Change all scripts *.sh executable only for root as,
# chmod 700 /opt/tomcat/apache-tomcat-8.0.23/bin/*.sh
Create Symbolic link for startup script as,
# ln -s /opt/tomcat/apache-tomcat-8.0.23/bin/startup.sh /usr/bin/tomcatup
Create Symbolic link for shutdown script as,
# ln -s /opt/tomcat/apache-tomcat-8.0.23/bin/shutdown.sh /usr/bin/tomcatdown
7. Now to start tomcat, you just need to fire the below command as root from anywhere in the shell.
# tomcatup