Method 1 โ Install and Configuration Tomcat in Any Linux using Zip file
Download Location of Tomcat โ
https://tomcat.apache.org/download-90.cgi


$ sudo -s
$ yum install java-11-openjdk-devel
$ cd /opt/
$ yum install unzip wget -y
# If the download URL is not working, please get a updated URL from Tomcat website with your version
# Version Tomcat 9
$ wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.58/bin/apache-tomcat-9.0.58.zip --no-check-certificate
$ unzip apache-tomcat-9.0.58.zip
$ cd apache-tomcat-9.0.58
$ cd bin/
$ ls
$ chmod -R 755 .
$ ./startup.sh
$ ps -eaf | grep tomcat
# Version Tomcat 8
$ wget https://dlcdn.apache.org/tomcat/tomcat-8/v8.5.81/bin/apache-tomcat-8.5.81.zip --no-check-certificate
$ unzip apache-tomcat-8.5.81.zip
$ cd apache-tomcat-8.5.81
$ cd bin/
$ ls
$ chmod -R 755 .
$ ./startup.sh
$ ps -eaf | grep tomcat
Code language: PHP (php)
Method 2 โ Install Tomcat Using Package Manager YUM in RHEL/Centos
$ yum install java-1.8.0-openjdk-devel
$ sudo -s
$ yum install tomcat
$ systemctl start tomcat
$ systemctl status tomcat
$ java -version
Executable Location of Tomcat
$ which tomcat
$ ls /usr/sbin/tomcat
Configuration Directory of Tomcat
$ ls /etc/tomcat/
Log Location of Tomcat
$ ls /var/log/tomcat/Code language: JavaScript (javascript)
How to remove Tomcat installed using Yum in RHEL/Centos?
$ yum remove tomcat
$ rm -rf /usr/sbin/tomcat
$ rm -rf /etc/tomcat/
$ rm -rf /var/log/tomcat/Code language: JavaScript (javascript)
How to Access Tomcat?
Tomcat default port number is โ 8080
Disable and Stop a firewall for Easy learning. Not a good pratice though. Rather, you should create exception in firewall for 8080 port number.
# For RHEL/CentOs
$ systemctl stop firewalld
$ systemctl disable firewalldCode language: PHP (php)

Iโm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals