Ubuntu16.04 install Tomcat8
阿新 • • 發佈:2017-10-01
exe ubuntu amd64 shutdown 成功 進入 .sh ubun classpath
export JRE_HOME=${JAVA_HOME}/jre
export PATH=${JAVA_HOME}/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export TOMCAT_HOME=/opt/apache-tomcat-8.5.20
exec "$PRGDIR"/"$EXECUTABLE" start "[email protected]" //要放在這一行上面。 6.啟動tomcat
1.下載tomcat http://tomcat.apache.org/download-80.cgi
2.解壓tomcat tar -zxvf apache-tomcat-8.5.20.tar.gz
3.復制解壓後的文件到 /opt 目錄 sudo
cp
-r apache-tomcat-8.5.20
/opt
4.進入 /opt/apache-tomcat-8.5.20
目錄 cd
/opt/
apache-tomcat-8.5.20
5.打開啟動的腳本文件 sudo
gedit .
/bin/startup
.sh
export JRE_HOME=${JAVA_HOME}/jre
export PATH=${JAVA_HOME}/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export TOMCAT_HOME=/opt/apache-tomcat-8.5.20
exec "$PRGDIR"/"$EXECUTABLE" start "[email protected]" //要放在這一行上面。 6.啟動tomcat
sudo
.
/bin/startup
.sh
7.驗證tomcat配置和安裝是否成功 http://localhost:8080/
8.關閉tomcat sudo
.
/bin/shutdown
.sh
Ubuntu16.04 install Tomcat8