![]() To user and group tomcat: sudo chown -R tomcat: /opt/tomcat Run the following command to change the directory ownership The tomcat user that we previously set up needs to have access to the tomcat installation directory. To have more control over versions and updates, we’ll create a symbolic link called latest, that points to the Tomcat installation directory: sudo ln -s /opt/tomcat/apache-tomcat-9.0.27 /opt/tomcat/latest The Tomcat source files to it to the /opt/tomcat directory: sudo mv apache-tomcat-9.0.27 /opt/tomcat/ When the download is complete, extract the tar file Navigate to the /tmp directory and download the Tomcat zip file using the following wget command Before continuing with the next step, you should check the Tomcat 9 download page to see if a newer version is available. We will download the latest version of Tomcat 9.0.x from the Tomcat downloads pageĪt the time of writing, the latest Tomcat version is 9.0.27. Running Tomcat as the root user is a security risk and not considered best practice.Īnd group with home directory /opt/tomcat that will run the Tomcat service: sudo useradd -m -U -d /opt/tomcat -s /bin/false tomcat Download Tomcat # ![]() How to install Tomcat on Ubuntu / Debian Create Tomcat system user #
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |