Comments on How to Install Apache Tomcat 8.5 on CentOS 7.3

In this tutorial, I will show you how to install and configure Apache Tomcat 8.5 on a CentOS 7 server. Apache Tomcat is an open source Java Servlet implementation developed by the Apache Software Foundation. Beside Java Servlets, Tomcat implements several other Java server technologies including JavaServer Pages (JSP), Java Expression Language, and Java WebSocket. Tomcat provides an HTTP Web Server for Java applications with support for HTTP/2, OpenSSL for JSSE and TLS virtual hosting.

12 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Konedala Rambabu

Very good article.

One suggestion to add to the tomcat-users.xml

<user username="admin" password="Password" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status"/>

Thank you for the work!

By: engineero

Hi,

When I issue a netstat -plntu command, I don't get a tcp6 process that is listening on port 8080. 

How can i fix this?

By: Vivek

May be netstat is not installed on your CentOS

Just run this command

[root@vps ~]# yum install net-tools

Once installed you should get out with netstat -plntu command

By: Oswaldo Castro

Great article Arul... Straight to the point. Thank you very much!!

By: Rama krishnan

Thank you

By: Bruno

Your article helped me a lot. Thank you!

By: Gerry

most browsers expect to use port 80, not 8080

By: Mikey

Dam I was hoping this would work but I am not seeing the netstat showing tcp6 8080. Darn!

By: valney

Hello everyone, I've been with this problem for a while, I could not solve it, I did not have much knowledge in this area, I searched the internet and found your artugo, and I wondered if I followed this tutorial and I can solve my problem. Thank you for providing some of your knowledge.Complete build logPicked up _JAVA_OPTIONS: -Xmx384m -Xms384m -XX:MaxPermSize=384m OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0 FAILURE: Build failed with an exception. * What went wrong: java.io.FileNotFoundException: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/lib/tzdb.dat (Too many open files) > /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64/jre/lib/tzdb.dat (Too many open files) * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. * Get more help at https://help.gradle.org BUILD FAILED in 1s

By: Jérôme

You save my life ! Thank you

By: Goran

Hello

Firewall seems to be on by default in CentOS

sudo firewall-cmd --permanent --add-port=8080/tcp

sudo firewall-cmd --reload

By: Goran

I used oracle Java

Using sudo update-alternatives --config java and setting the path as it says didn't work. It caused the error below, and so I had to delete the last part from /usr/java/jdk1.8.0_202-amd64/jre/bin/java to /usr/java/jdk1.8.0_202-amd64 in the .bash_profile and then Tomcat started up.

 

Using JRE_HOME:        /usr/java/jdk1.8.0_202-amd64/jre/bin/java

Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar

Using CATALINA_OPTS:

/opt/tomcat/bin/catalina.sh: line 558: /usr/java/jdk1.8.0_202-amd64/jre/bin/java/bin/java: Not a directory