How To Install Jetty Web Server On CentOS 7

preview_player
Показать описание
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.
mv /opt/jetty-distribution-9.2.21.v20170120/ /opt/jetty
useradd -m jetty
chown -R jetty:jetty /opt/jetty/
chkconfig --add jetty
chkconfig --level 345 jetty on
nano /etc/default/jetty
JETTY_HOME=/opt/jetty
JETTY_USER=jetty
JETTY_PORT=8080
JETTY_HOST=127.0.0.1
JETTY_LOGS=/opt/jetty/logs/

service jetty start
cd /opt/jetty/
rm -rf webapps/
cp -r demo-base/webapps/ /opt/jetty/
Рекомендации по теме