Fast Setup Jetty under Ubuntu

Source: Internet
Author: User

First to install the Java,java installation method please see my last blog post.

First download with wget:

wget http://ftp.kaist.ac.kr/eclipse/jetty/stable-9/dist/jetty-distribution-9.3.3.v20150827.tar.gz


Then unzip and move to opt

$tar-XVF JETTY-DISTRIBUTION-9.2.5.V20141112.TAR.GZ$MV Jetty-distribution-9.2.5.v20141112/opt/jetty


To make jetty long-lasting, make it a service.

CP Bin/jetty.sh/etc/init.d/jettyvim/etc/default/jetty


After creating a new file with Vim, enter the following:

Jetty_home=/opt/jettyjetty_args=jetty.port=80

(If you do not need to deploy to port 80, you can remove the second row)


You can then use start and stop to control the

$ service Jetty start$ Service jetty stop



To deploy the Java project, throw the war into the WebApps in the jetty directory.

Fast Setup Jetty under Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.