Installing
-
2. Downloading Tomcat 9
Download Apache Tomcat 9 Java Server.
-
3. Extracting Tomcat 9
Then Extract Tomcat 9 into /tmp
Eventually Double-Click on Archive to Open with Archive Manager:
Or from Shell:tar xvzf ~/Downloads/apache-tomcat-9*.tar.gz -C /tmp/
-
4. Installing Tomcat 9
And to Install Apache Tomcat 9 on Ubuntu
First, Set Permissions & Ownership with:sudo chown -R root:root /tmp/apache-tomcat-9*
sudo chmod -R +xr /tmp/apache-tomcat-9*
Authenticate with the User Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.
Then Switch the contents into the Target:sudo mv /tmp/apache-tomcat-9* /opt/apache-tomcat-9
This for a System-wide Setup.
-
5. Installing Oracle JDK
How to Install Required Oracle-Sun JDK 8+ on Ubuntu
-
6. Starting Tomcat 9
Now the Commands to Start and Stop Tomcat 9 Server
To Start it Up:sudo /opt/apache-tomcat-9/bin/startup.sh
And to Shut it Down:
sudo /opt/apache-tomcat-9/bin/shutdown.sh
Contents