Jetty 安装

1 下载 jetty

wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.26.v20200117/jetty-distribution-9.4.26.v20200117.tar.gz
tar -zxvf jetty-distribution-9.4.26.v20200117.tar.gz 
cd jetty-distribution-9.4.26.v20200117

2 部署 war 包

部署 xxx.war 包到 jetty-distribution-9.4.26.v20200117/webapps 目录下

3 启动

java -jar start.jar jetty.http.port=8080

4 例子

cd  /apps/pb/jetty-distribution-9.4.26.v20200117/
java -jar start.jar  jetty.http.port=2222