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