How To Install Jetty Web Server on CentOS 7

Install Jetty Web Server on CentOS 7

For those of you who didn’t know, Jetty is a pure Java-based HTTP (Web) server and Java Servlet container. Jetty is now often used for machine to machine communications, usually within larger software frameworks. Jetty is developed under open source license, part of Eclipse foundation, it is used in multiple active products such as Apache ActiveMQ, Alfresco, Apache Geronimo, Apache Maven, Apache Spark, and also in open source projects such as Hadoop, Eucalyptus, Twitter’s Streaming API and Zimbra.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Jetty on centos 7.

Install Jetty Web Server on CentOS 7

Step 1. First of all, we have to install Java JDK.

Step 2. Installing Jetty on CentOS 7.

Download the latest version of the jetty.

Rename the file name to jetty:

Step 3. Create a user called jetty to run a jetty web server on system start-up.

Step 4. Configure Jetty.

Add the following information in /etc/default/jetty, replace port and listening address with your value:

Step 5. Start Jetty webserver

You should now be able to start Jetty freely with the following command:

Now you can access the jetty webserver at http://your-ip-address:8080

Congratulations! You have successfully installed jetty. Thanks for using this tutorial for installing Jetty webserver on centos 7 systems. For additional help or useful information, we recommend you to check the official Jetty website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!