I have created an instance in Amazon web services, and I have connected to the server using putty through ssh.
But I do not know how to install tomcat 8 in amazon ec2. Please help me with this.
You can use yum tool to install the tomcat8 packer from amazon default repository.
The command is: yum install tomcat8-webapps tomcat8-admin-webapps
On Amazon Linux 2 AMI:
List extra packages (you will see tomcat8 versions):
$ amazon-linux-extras list
Install extra packages:
$ sudo amazon-linux-extras install tomcat8.5
Start tomcat service:
$ sudo systemctl start tomcat
Create index file:
$ cd /usr/share/tomcat/webapps
$ sudo mkdir ROOT
$ cd ROOT/
$ sudo vi index.html #add some HTML content
Next you could view your site at localhost:8080
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With