Skip to content

Instantly share code, notes, and snippets.

@LinauxTerminology
Last active July 3, 2021 15:43
Show Gist options
  • Save LinauxTerminology/544c57934ae701d712f4646abbc7384e to your computer and use it in GitHub Desktop.
Save LinauxTerminology/544c57934ae701d712f4646abbc7384e to your computer and use it in GitHub Desktop.
I Will Do Install Apache Tomcat.sh
If you need Apache Tomcat Setup contact with me:
Email: [email protected]
Skype: https://join.skype.com/
Telegram:https://t.me/LinauxTerminology
WhatsApp: +8801408694088
Imo: +8801408694088
#!/bin/sh
# Tomcat installation on Ubuntu:
# ==============================
# Install OpenJDK
sudo apt update
sudo apt install default-jdk
java -version
# Create Tomcat User and Group (Do run as root). Create a new group and system user to run the Apache Tomcat service from the /opt/tomcat directory.
groupadd tomcat
chown tomcat:tomcat /opt/tomcat -R
# Set directory to download the tomcat
cd /tmp
# Now download tomcat.
wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.48/bin/apache-tomcat-9.0.48.tar.gz
# To extract the tar.gz Tomcat file, create a new /opt/tomcat/ directory with the command:
sudo mkdir /opt/tomcat
# Now extract tomcat tarbal using the command
sudo ln -s /opt/tomcat/apache-tomcat-${VERSION} /opt/tomcat/latest
sudo chown -R tomcat: /opt/tomcat
@LinauxTerminology
Copy link
Author

Screenshot from 2021-07-03 00-05-57
Screenshot from 2021-07-03 19-46-55
Screenshot from 2021-07-03 19-47-19
Screenshot from 2021-07-03 19-47-47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment