CentOS 7 /Linux: How To Install Jetty Web Server
Jetty provides a Web server and javax.servlet container, plus support for SPDY, WebSocket, OSGi, JMX, JNDI, JAAS and many other integrations. How to install Jetty Web Server in CentOS 7 operating system? in this post, you’ll see the installation steps.
CentOS 7 Jetty Web Server Installation
Step1# Firstly you need to make sure that the Java package has been installed, or you can use the following command to install it, type:
$sudo yum installjava-1.7.0-openjdk
Step2# Downloading jetty source package, and uncompress it to /opt directory
$sudo wget http://download.eclipse.org/jetty/stable-9/dist/jetty-distribution-9.2.5.v20141112.tar.gz $ tar -zxvf jetty-distribution-9.2.5.v20141112.tar.gz /opt
Step3# Modidy jetty-distribution-9.2.5.v20141112 to another simple name, such as: jetty, issue the following command:
$sudo mv /opt/jetty-distribution-9.2.5.v20141112 /opt/jetty
Step4# edit “/etc/default/jetty” configuration file and add the below information in:
JETTY_HOME=/opt/jetty JETTY_USER=root JETTY_PORT=8080 JETTY_HOST=192.168.1.154 JETTY_LOGS=/opt/jetty/logs/
Step5# restart Jetty web service, type:
$sudo service jetty start
done….