1 Star 0 Fork 44

cctv1 / QuestionAnsweringSystem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
startup_tomcat.sh 1.03 KB
一键复制 编辑 原始数据 按行查看 历史
ysc 提交于 2015-10-02 12:31 . tomcat-8.0.27
#!/bin/bash
export MAVEN_OPTS="-Xms3g -Xmx3g"
if [ -f ~/tomcat-8.0.27.zip ] ; then
echo tomcat-8.0.27 prepared
else
echo downloading tomcat8.0.27...
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.27/bin/apache-tomcat-8.0.27.zip
echo tomcat has been downloaded
mv apache-tomcat-8.0.27.zip ~/tomcat-8.0.27.zip
echo copy finished
unzip -d ~/tomcat-8.0.27 ~/tomcat-8.0.27.zip
echo unzip finished
fi
mvn clean install
echo clean install finished
rm -rf ~/tomcat-8.0.27/apache-tomcat-8.0.27/webapps/deep-qa-web-1.2
echo old webapps directory deleted
cp deep-qa-web/target/deep-qa-web-1.2.war ~/tomcat-8.0.27/apache-tomcat-8.0.27/webapps/
echo copy war finished
rm -rf ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs
echo old logs directory deleted
mkdir ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs
echo mkdir logs directory
chmod +x ~/tomcat-8.0.27/apache-tomcat-8.0.27/bin/*.sh
~/tomcat-8.0.27/apache-tomcat-8.0.27/bin/catalina.sh start
echo deep-qa-web-1.2 has been started
tail -f ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs/*
Java
1
https://gitee.com/8684/QuestionAnsweringSystem.git
git@gitee.com:8684/QuestionAnsweringSystem.git
8684
QuestionAnsweringSystem
QuestionAnsweringSystem
master

搜索帮助