How to install and Configure Apache Tomcat in Linux (RHEL/CentOS)

preview_player
Показать описание
TOMCAT APACHE:
Apache Tomcat is a web server for Java server-side applications. It is a Servlet/JSP container and implements several Java EE specifications.

Steps to follow for the installation and configuration of TOMCAT APACHE in RHEL/CentOS:

1. Login as root in server and configure yum local repo if not already configured. (watch below video for yum local repo configuration):

2. Install tomcat package from repository by yum command.
# yum install tomcat

4. Install all other tomcat packages like tomcat webapps, tomcat docs etc.
# yum install tomcat*

user username="admin" password="password" roles="manager-gui,admin-gui"/

6. Start tomcat service now.
# systemctl start tomcat

7. Set tomcat service to start automatically after reboot.
# systemctl enable tomcat

8. Add port 8080 (to be used by tomcat) in firewall.
# firewall-cmd --permanent --zone=public --add-port=8080/tcp

9. Reload the firewall.
# firewall-cmd --reload

Now Test your configuration:
Open Firefox and write below line in address bar.
localhost:8080
or
Open any browser and write below line in address bar.
ip-address:8080
(where ip-address is the IP address of your tomcat server)

You should see a webpage showing successful configuration of Tomcat Apache.

You have successfully installed and configured Tomcat Apache in Linux.

=====================================================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will feel glad to answer your question. And don't forget to subscribe the channel.
==================================================
Complete File Permissions in Linux (RHEL) including advance file permissions and ACL:

LVM Snapshot in RHEL:

Reset Root Password in RHEL 8:

Logical Volume Management in RHEL 8:

Configure VNC in RHEL:

Create Swap File in RHEL 8:
====================================================
Contact Us:

To Follow Vikas Nehra's Twitter Handle:👇

For Registration:👇

To Follow Our Twitter Handle:👇

To Visit Our Facebook Page:👇

To Follow Nehra Classes on Instagram:👇

To Our Visit Our Webpage:👇

Join Us on Telegram App: 👇

WhatsApp Us: 👇

Email Us:👇
====================================================
©COPYRIGHT. ALL RIGHTS RESERVED.
Рекомендации по теме
Комментарии
Автор

Incredible source of information. Thanks

softmech_india
Автор

Awesome !!! Thank you for sharing this

pratibhaadhikari
Автор

Wow... Created TOMCAT after watching your video.... Thanks a lot Sir :)

thehappybee
Автор

Nice video. In rhel6 also same process to install configure apache.

speniji
Автор

how to customize display timezone of the "Last Modified" column in tomcat directory listing

daxmlai
Автор

Sir tomcat apache web server pe ane wali error 404 page not found related koi apki video hai kya ?? ple let us know

paragshegulwadkar
Автор

Very clear tutorial! Thank you so much!
Unfortunately, mine didnt work. I dont know why though I do follow each steps from your tutorial.
Can't you help me troubleshoot this, please?
Thank you!

mielushelheureux
Автор

_Correction on 5th Point_


Steps to follow for the installation and configuration of TOMCAT APACHE in RHEL/CentOS:

1. Login as root in server and configure yum local repo if not already configured. (watch below video for yum local repo configuration):

2. Install tomcat package from repository by yum command.
# yum install tomcat

3. Edit tomcat.conf file and append below line there by using vi editor.
# vim

-Djava.awt.headless=true -Xmx1026m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC"

4. Install all other tomcat packages like tomcat webapps, tomcat docs etc.
# yum install tomcat*

5. Edit tomcat-user.xml file and write below (use less than symbol before starting this line and greater than symbol after) line there in tomcat-users section by vi editor, save it.
# vim
<user username="admin" password="password" roles="manager-gui, admin-gui"/
>

6. Start tomcat service now.
# systemctl start tomcat

7. Set tomcat service to start automatically after reboot.
# systemctl enable tomcat

8. Add port 8080 (to be used by tomcat) in firewall.
# firewall-cmd --permanent --zone=public --add-port=8080/tcp

9. Reload the firewall.
# firewall-cmd --reload

Now Test your configuration:
Open Firefox and write below line in address bar.
localhost:8080
or
Open any browser and write below line in address bar.
ip-address:8080
(where ip-address is the IP address of your tomcat server)

You should see a webpage showing successful configuration of Tomcat Apache.

You have successfully installed and configured Tomcat Apache in Linux.

tameshchakraborty
Автор

how to check who is access my web server?

SocWel
Автор

Only one video for tomcat.Ia it enough? 😏

vishalgourav
Автор

This video has really bad sound quality.

geodepe