

So, change the directory ownership to the user. It will point to the Tomcat installation directory: sudo ln -s /opt/tomcat/apache-tomcat-8.5.37 /opt/tomcat/latestĥ) Now, the tomcat-user previously set up needs to have access to tomcat directory. To have more control on versions and updates, you will need to create a symbolic-link latest. Sudo mv apache-tomcat-8.5.37 /opt/tomcat/Ĥ) Tomcat 8.5 is updated frequently. Then, extract the zip file, and move it to the /opt/tomcat directory: unzip apache-tomcat-*.zip Then, use wget to download the zip file, using the following command: cd /tmpģ) After the download is complete. Before continuing check the download page for any new version.Ģ) Now, navigate to the /tmp directory. sudo useradd -m -U -d /opt/tomcat -s /bin/false tomcatġ) Next, you will download the latest version of Tomcat 8.5.x from the Tomcat downloads page. Then, group it with home-directory /opt/tomcat. Instead, you will create a new system user. sudo yum install java-1.8.0-openjdk-develġ) Running Tomcat as a root user is a security risk and hence is not recommended. Moreover, it is the default Java development and runtime in CentOS 7. It is the open-source implementation of the Java Platform. A user with sudo privileges or with the root-userġ) Tomcat 8.5 needs Java SE 7 version or later.We will also address FAQs related to the Tomcat installation. In this tutorial, you will install Tomcat 8.5 on CentOS 7. Tomcat is an open-source implementation of the Java Servlet, JavaServer Pages, JavaExpression Language, and Java-WebSocket technologies. Let’s briefly understand - What is Tomcat? Before, we begin talking about how to install Tomcat 8.5 on CentOS 7.
