File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 17
17
18
18
``` sh
19
19
# install Java JDK 1.8+ as a pre-requisit for tomcat to run.
20
+ sudo hostnamectl set-hostname tomcat
20
21
cd /opt
21
22
sudo yum install git wget -y
22
23
sudo yum install java-1.8.0-openjdk-devel -y
23
- # Download tomcat software and extract it .
24
+ # install wget unzip packages .
24
25
sudo yum install wget unzip -y
25
26
```
26
- ### Install Tomcat version 9.0.65
27
+ ## Install Tomcat version 9.0.65
28
+ ### Download and extract the tomcat server
27
29
``` sh
28
30
sudo wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65.tar.gz
29
31
sudo tar -xvf apache-tomcat-9.0.65.tar.gz
30
32
sudo rm -rf apache-tomcat-9.0.65.tar.gz
33
+ # ## rename tomcat for good naming convention
31
34
sudo mv apache-tomcat-9.0.65 tomcat9
35
+ # ## assign executable permissions to the tomcat home directory
32
36
sudo chmod 777 -R /opt/tomcat9
33
37
sudo chown ec2-user -R /opt/tomcat9
38
+ # ## start tomcat
34
39
sh /opt/tomcat9/bin/startup.sh
35
40
# create a soft link to start and stop tomcat
41
+ # This will enable us to manage tomcat as a service
36
42
sudo ln -s /opt/tomcat9/bin/startup.sh /usr/bin/starttomcat
37
43
sudo ln -s /opt/tomcat9/bin/shutdown.sh /usr/bin/stoptomcat
38
44
starttomcat
You can’t perform that action at this time.
0 commit comments