DevOps Classroom Series – 05/Jun/2021

Tomcat 9 with openjdk 8 using Chef

  • Manual Steps are
1.  sudo apt update
2.  sudo apt-cache search openjdk
3.  sudo apt install openjdk-8-jdk -y
4.  java -version
5.  sudo groupadd tomcat
6.  sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat
7.  cd /tmp/
8.  wget https://mirrors.estointernet.in/apache/tomcat/tomcat-9/v9.0.46/bin/apache-tomcat-9.0.46.tar.gz
9.  sudo mkdir /opt/tomcat
10.  sudo tar xzvf apache-tomcat-*tar.gz -C /opt/tomcat --strip-components=1
11.  cd /opt/tomcat
12.  sudo chgrp -R tomcat /opt/tomcat
13.  sudo chmod -R g+r conf
14.  sudo chmod g+x conf
15.  sudo chown -R tomcat webapps/ work/ temp/ logs/
16.  sudo nano /etc/systemd/system/tomcat.service
17.  sudo systemctl daemon-reload
18.  sudo systemctl start tomcat
19.  sudo systemctl status tomcat
  • Refer Here for the chef cookbook with 10 steps automated and 9 more to go

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Floating Social Media Icons by Acurax Wordpress Designers

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube