

Create a directory, then extract the archive to it. Let’s install Tomcat under /opt/tomcat directory.

Now using CURL, download the Tomcat from the official website as mentioned above. Now, change the directory to /tmp $ cd /tmp To download the latest version, navigate to Binary Distributions section, then under the Core list, copy the link from the “tar.gz”. You can download the latest version from tomcat’s official site. Step 3: Install Tomcatīest way to install Apache Tomcat 9 on Ubuntu by downloading the latest release and configure it manually. Now, you can download and install Tomcat. $ sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat Next, create a new tomcat user and add the user to the group “tomcat”. Step 2: Create Tomcat UserĬreate a new user and group that will run the Tomcat service. Upon successful installation, it should show latest java version. To make sure it is installed perfectly, check Java version. Install OpenJDK by running the following command. Tomcat requires Java to be installed on the server so that any Java web application code can be executed. How to Install Apache Tomcat 9 on Ubuntu RequirementĬheck your system if Java is already installed or not by following command.
