Skip to content

Commit 2af75d4

Browse files
authored
Update READme.md
1 parent e1885f0 commit 2af75d4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Tomcat-installation/READme.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,28 @@
1717

1818
``` sh
1919
# install Java JDK 1.8+ as a pre-requisit for tomcat to run.
20+
sudo hostnamectl set-hostname tomcat
2021
cd /opt
2122
sudo yum install git wget -y
2223
sudo yum install java-1.8.0-openjdk-devel -y
23-
# Download tomcat software and extract it.
24+
# install wget unzip packages.
2425
sudo yum install wget unzip -y
2526
```
26-
### Install Tomcat version 9.0.65
27+
## Install Tomcat version 9.0.65
28+
### Download and extract the tomcat server
2729
``` sh
2830
sudo wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz
2931
sudo tar -xvf apache-tomcat-9.0.65.tar.gz
3032
sudo rm -rf apache-tomcat-9.0.65.tar.gz
33+
### rename tomcat for good naming convention
3134
sudo mv apache-tomcat-9.0.65 tomcat9
35+
### assign executable permissions to the tomcat home directory
3236
sudo chmod 777 -R /opt/tomcat9
3337
sudo chown ec2-user -R /opt/tomcat9
38+
### start tomcat
3439
sh /opt/tomcat9/bin/startup.sh
3540
# create a soft link to start and stop tomcat
41+
# This will enable us to manage tomcat as a service
3642
sudo ln -s /opt/tomcat9/bin/startup.sh /usr/bin/starttomcat
3743
sudo ln -s /opt/tomcat9/bin/shutdown.sh /usr/bin/stoptomcat
3844
starttomcat

0 commit comments

Comments
 (0)