yum -y install java-1.7.0-openjdk wget http://download.eclipse.org/jetty/stable-9/dist/jetty-distribution-9.2.5.v20141112.tar.gz tar zxvf jetty-distribution-9.2.5.v20141112.tar.gz -C /opt/ mv /opt/jetty-distribution-9.2.5.v20141112/ /opt/jetty cd /opt/jetty/bin sh ./jetty.sh start 浏览器http://IP:8080/即可 ln -s /opt/jetty/bin/jetty.sh /etc/init.d/jetty chkconfig --add jetty chkconfig --level 345 jetty on vi /etc/default/jetty JETTY_HOME=/opt/jetty JETTY_USER=jetty JETTY_PORT=8080 JETTY_HOST=50.116.24.78 JETTY_LOGS=/opt/jetty/logs/ service jetty start (责任编辑:IT) |