Last active
July 3, 2021 15:43
-
-
Save LinauxTerminology/544c57934ae701d712f4646abbc7384e to your computer and use it in GitHub Desktop.
I Will Do Install Apache Tomcat.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Author
LinauxTerminology
commented
Jul 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment