The Apache Software Foundation also known as ASF recently released the latest Apache Tomacat server 8.5 on December 8, 2016. Tomcat server implements Java servlet and Java servlet technologies like JSP Java WebSocket. Apache Tomcat is an open-source web server and servlet container that is used to serve Java applications. It is developed by the Apache Software Foundation, written in Java and released under Apache License 2.0..
Tomcat 8.5 does not require any special kind of hardware. It will need a CentOS server IP Address of your server and root privileges on the server.
Before installing Tomcat we will have to install the Java Development Kit JDK) on our system but it is recommended that you update the system and available packages before installing JDK. Run the following command to update system .
yum -y update
Now once the system is updated install JDK and to do so run following command:
You can check this using a web browser with http://yourserver_IP:8080 then you'll homepage of Apache Tomcat Server but we recommend you to use browser later at final testing because we will run Tomcat with a systemd service file in the final configuration .
Now run following commands :
cd /opt/tomcat/bin/./shutdown.shchown -hR tomcat:tomcat /opt/tomcat/
Creating a systemd Service File
Now you'll need create a systemd service file to run Apache Tomcat as a tomcat user. Creation of a systemd service file is recommended for easy starting and stopping as the service.
Run the following command :
Add the below given content into nano text editor, you can simply copy-paste this into the file :
Click on Manager app on the top right side of your screen then you'll be asked to username and password for authentication enter your username and password and you will see manager dashboard like this :
You can manage your Java applications using the Tomcat Web Application Manager. It is also used to Start, Stop, Reload, Deplo . You can also diagnostics on your apps using Tomcat Web Application Manager.
Now go to the host manager and here you'll be again asked to enter username and password so repeat the above procedure and click on log in you'll see a virtual host manager dashboard like this:
In this tutorial we have learned how to install and configure Apache Tomcat 8.5 server on a CentOS system very easily and we hope that now after this guide you have enough knowledge to work with Tomcat 8.5 .
Looking for the right web hosting solution for your website can be an intimidating task. Options nowadays are more diversified than ever, and each year brings new developments in the web hosting market. If you have no clue of what to look out for, you can find yourself overwhelmed with...
Content marketing continues to be one of the most valuable tools for today’s online businesses. With content, you can improve your chances of reaching your target audience, boost your search engine standing, and even unlock new opportunities for sales. The more content you produce, the more you can strengthen your...
User Experience (UX) is one of the most crucial factors to consider in web design. As the number of websites and applications in the world today continues to accelerate, businesses are under more pressure than ever to impress customers straight away. If a user visits your website and finds slow-loading...