Change Jetty default port

前端 未结 10 1234
野性不改
野性不改 2020-12-29 04:15

Jetty default port is 8080, but I want to change to default port to some other port (9999).

I read a few tutorials and they said almost all of configuration informa

10条回答
  •  暖寄归人
    2020-12-29 05:08

    Update:

    On Jetty 9.x, jetty.port has been deprecated and you can use jetty.http.port instead, as shown below:

    $> cd $JETTY_HOME && java -jar start.jar -Djetty.http.port=8080
    

提交回复
热议问题