Ubuntu11.04 install and configure Jetty7

Source: Internet
Author: User
1) download the green jetty: movie from the official website. 1) download the green jetty from the official website: Http://download.eclipse.org/jetty/ I downloaded the unzip file copy and decompress it to the server. Here we assume that the decompressed path is:/file/the directory structure after the jetty-distribution-7.5.4.v20111024 is extracted as follows:
 bin
contexts
contexts-available
etc
javadoc
lib
logs
overlays
resources
webapps
start.ini
start.jar
VERSION.txt
README.txt
  2) set the JETTY_HOME system environment variable$ Sudo vi/etc/profile Add the following line of code at the end of the file: export JETTY_HOME =/file/jetty-distribution-7.5.4.v20111024 3) Start Jetty 3-1) Start in the background$ Cd $ JETTY_HOME $ bin/jetty. sh start to stop jetty, run the following command: $ bin/jetty. sh stop

3-2) start on the console

$ Cd $ JETTY_HOME $ java-jar start. jar read: excellent Web server Jetty http://www.linuxidc.com/linux/2011-12/48677.htmjettyand tomcat configuration on some similarities and differences http://www.linuxidc.com/Linux/2011-08/39879.htm Others: 1) Modify jetty's default portModify the $ JETTY_HOME/etc/jetty. xml file and change the value of jetty. port to the specified port number. The default value is 8080.

Jetty details: Click here
Jetty's: Click here

Recommended reading:

Use Jetty as an Embedded Server http://www.linuxidc.com/Linux/2013-07/86983.htm

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.