CentOS7之Jetty安裝配置
阿新 • • 發佈:2018-12-31
請尊重他人的勞動成果,轉載請務必註明出處.謝謝!
下載安裝包
wget -c http://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.2.19.v20160908/jetty-distribution-9.2.19.v20160908.tar.gz
解壓
tar jetty-distribution-9.2.19.v20160908.tar.gz
配置
cd /usr/local/bin/jetty-distribution-9.2.19.v20160908 vim start.ini 修改埠等
服務
cd /etc/init.d vim jetty #!bin/bash # chkconfig: 35 99 99 # description: Jetty 9 webserver # processname: jetty JETTY_HOME=/usr/local/bin/jetty-distribution-9.2.19.v20160908/bin case $1 in start) $JETTY_HOME/jetty.sh start;; stop) $JETTY_HOME/jetty.sh stop;; status) $JETTY_HOME/jetty.sh status;; restart) $JETTY_HOME/jetty.sh restart;; *) echo "require start|stop|status|restart" ;; esac service jetty start service jetty stop
開機啟動
chkconfig --add jetty chkconfig jetty on