Jetty安装配置
官方网站:

-
Large clusters, such as the
Yahoo Hadoop Cluster -
Cloud computing, such as the
Google AppEngine -
SaaS, such as
Yahoo! Zimbra -
Application Servers, such as
Apache Geronimo -
Frameworks, such as
GWT -
Tools, such as the
Eclipse IDE -
Devices, such as
phones - More...
一.安装jdk
tar -xvf /mnt/jdk-8u45-linux-x64.tar.gz -C /opt/
ln -s /opt/jdk-8u45-linux-x64 /opt/jdk
cat >>/etc/profile <<'HERE'
export JAVA_HOME=/opt/jdk
export PATH=$PATH:$JAVA_HOME/bin
HERE
source /etc/profile
二.安装apache-maven
unzip /mnt/samba/apache-maven-3.3.3-bin.zip -d /opt
mv /opt/apache-maven-3.3.3 /opt/maven
加入PATH路径
export
PATH=$PATH:$JAVA_HOME/bin:/opt/maven/bin
source
/etc/profile
三.安装jetty
wget http://download.eclipse.org/jetty/9.3.5.v20151012/dist/jetty-distribution-9.3.5.v20151012.tar.gz
tar -xvf jetty-distribution-9.3.5.v20151012.tar.gz -C
/opt
mv /opt/jetty-distribution-9.3.5.v20151012 /opt/jetty
修改环境变量
cat >>/etc/profile
<<'HERE'
export JETTY_HOME=/opt/jetty
HERE
source /etc/profile
如下,copy Jetty的demo app
cp -af /opt/jetty/demo-base/webapps/*
/opt/jetty/webapps/