Jetty9 installation configuration

jetty9 installation configuration

1. Download the zip package of jetty (myself Win system)

Address: http://www.eclipse.org/jetty/ Download according to the required version, version 9.2 requires jdk7+

2 .Unzip the downloaded “jetty-distribution-9.2.21.v20170120.zip”, the directory structure is as follows:

3. Create a new folder named in the jetty directory base ,

Then enter the base folder, shift+right click–>>Open the command line window here, confirm that the current directory of the command line is jett directory/base directory/

Then the command line:

>>> java -jar ../start.jar Warning: Unable to start, exit... Usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help#Learn more> java -jar ../start.jar --add-to-startd=http, deployhttp is initialized in ${jetty.base}/start.d/http.ini (created), the server is initialized in ${jetty.base}/st art.d/server.ini (created) deployment is initialized at ${jetty.base}/start.d/deploy.ini(created)MKDIR: ${jetty.base}/webapps server at ${jetty.base}/start Initialization in .d/server.ini> java -jar $ HOME ../start.jar2013-09-06 14:59:32.542:INFO:oejs.Server:main:jetty-9-demo2013-09-06 14:59 : 32.572: INFO: oejdp.ScanningAppProvider: main: Deployment monitor [file:/tmp/mybase/webapps/] interval 12013-09-06 14:59:32.602: INFO: oejs.ServerConnector: main: Started ServerConnector @ 405a2273 {HTTP / 1.1) {0.0.0.0:8080}[...]

At this time, enter localhost:8080 in the browser address, you can see the jetty default page, close the small black window, and the service stops!

4. Start https, command line in jetty home directory

> java -jar start.jar --add-to-startd = https https is initialized in ${jetty.home} /start.d/https.ini (created) ssl is initialized in ${jetty.home} /start.d/ in ${ Enable ssl.ini (created) server in jetty.home}/start.ini resource Enable in ${jetty.home}/start.iniext Enable in ${jetty.home}/start.ini> java -jar start .jar 2013-09-06 13:52:43.326:INFO:oejs.Server:main:jetty-9...[...]

Close The small black window can be

5. Modify the http port to 8081

In the main jetty directory, edit the start.ini file and search for “jetty.port=” or “jetty” .port=8080″, modify to jetty.port=8081, exit and save it

Start the service in the small black window in the main directory

>java -jar start.jar

可以在浏览器输入localhost:8081访问

6. Article reference

Official website document http://www.eclipse.org/jetty/documentation/9.2.21.v20170120/quickstart-running -jetty.html

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4551 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.