http://www.eclipse.org/jetty/download.html
http://www.eclipse.org/jetty/documentation/current/startup-unix-service.html
https://blog.csdn.net/finishx/article/details/79010944
https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-jetty-web-server-on-centos-7-rhel-7.html
https://linux.cn/article-4792-1.html
centos6和7的系统服务管理的区别,旧的是service,新的是systemctl
yum -y install java-1.8.0-openjdk
wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.11.v20180605/jetty-distribution-9.4.11.v20180605.zip
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el6_10.x86_64/jre export JAVA_HOME PATH=$JAVA_HOME/bin:$PATH export PATH JETTY_HOME=/usr/local/jetty cd $JETTY_HOME case $1 in start) nohup java -jar start.jar jetty.http.port=8080 jetty.ssl.port=8443 & ;; stop) sh $JETTY_HOME/bin/jetty.sh stop ;; restart) sh $JETTY_HOME/bin/jetty.sh stop nohup java -jar start.jar jetty.http.port=8080 jetty.ssl.port=8843 & ;; status) ps -ef | grep tomcat esac exit 0
http://www.eclipse.org/jetty/documentation/current/quickstart-common-config.html
修改启动端口:
java -jar $JETTY_HOME/start.jar jetty.http.port=8080 java -jar $JETTY_HOME/start.jar jetty.ssl.port=8443