2015-01-26

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. But the other Web Servers are usually associated with serving documents to humans. Jetty is developed as a free and open source project as part of the Eclipse Foundation. The web server is used in products such as Apache ActiveMQ, Alfresco, Apache Geronimo, Apache Maven, Apache Spark, Google App Engine, Eclipse, FUSE, Twitter’s Streaming API and Zimbra.

This article explains ‘How to install jetty web server in your CentOS server’.

First of all we have to install java JDK, By the following command:

After the JDK installation, We will download the latest version of Jetty:

Extract and move the the downloaded package to /opt:

Rename the file name to jetty:

Create a user called jetty:

Change the ownership of jetty:

Make a Symlink jetty.sh to /etc/init.d directory to create a start up script file:

Add script:

Make the jetty web server auto starts on system boot:

Open /etc/default/jetty in your favorite editor and replace port and listening address desired value:

We finished the installation, Now you have to start the jetty service.

All done!

Now you can access jetty web sever in  http://<youripaddress>:8080

That’s it!

Cheers!!

---------------------------------------------------------------------
Install Jetty Web Server On CentOS 7

Show more