代码拉取完成,页面将自动刷新
if [ -f ~/tomcat-8.0.21.zip ] ; then
echo tomcat-8.0.21 prepared
else
echo downloading tomcat8.0.21...
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-8.0.21.zip
echo tomcat has been downloaded
mv apache-tomcat-8.0.21.zip ~/tomcat-8.0.21.zip
echo copy finished
unzip -d ~/tomcat-8.0.21 ~/tomcat-8.0.21.zip
echo unzip finished
fi
mvn clean install
echo clean install finished
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/APDPlat_Web-2.6
echo old webapps directory deleted
cp APDPlat_Web/target/APDPlat_Web-2.6.war ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/
echo copy war finished
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
echo old logs directory deleted
mkdir ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
echo mkdir logs directory
chmod +x ~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/*.sh
~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/catalina.sh start
echo apdplat has been started
tail -f ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs/*
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。