Skip to content

Commit c039fd3

Browse files
committed
tomcat-8.0.27
1 parent fe943e3 commit c039fd3

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100

101101
cd QuestionAnsweringSystem
102102
mvn install
103-
cp deep-qa-web/target/deep-qa-web-1.2.war apache-tomcat-7.0.37/webapps/
103+
cp deep-qa-web/target/deep-qa-web-1.2.war apache-tomcat-8.0.27/webapps/
104104
启动tomcat
105105

106106
3、打开浏览器访问:

startup_tomcat.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22

33
export MAVEN_OPTS="-Xms3g -Xmx3g"
44

5-
if [ -f ~/tomcat-8.0.21.zip ] ; then
6-
echo tomcat-8.0.21 prepared
5+
if [ -f ~/tomcat-8.0.27.zip ] ; then
6+
echo tomcat-8.0.27 prepared
77
else
8-
echo downloading tomcat8.0.21...
9-
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-8.0.21.zip
8+
echo downloading tomcat8.0.27...
9+
wget http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.27/bin/apache-tomcat-8.0.27.zip
1010
echo tomcat has been downloaded
11-
mv apache-tomcat-8.0.21.zip ~/tomcat-8.0.21.zip
11+
mv apache-tomcat-8.0.27.zip ~/tomcat-8.0.27.zip
1212
echo copy finished
13-
unzip -d ~/tomcat-8.0.21 ~/tomcat-8.0.21.zip
13+
unzip -d ~/tomcat-8.0.27 ~/tomcat-8.0.27.zip
1414
echo unzip finished
1515
fi
1616
mvn clean install
1717
echo clean install finished
18-
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/deep-qa-web-1.2
18+
rm -rf ~/tomcat-8.0.27/apache-tomcat-8.0.27/webapps/deep-qa-web-1.2
1919
echo old webapps directory deleted
20-
cp deep-qa-web/target/deep-qa-web-1.2.war ~/tomcat-8.0.21/apache-tomcat-8.0.21/webapps/
20+
cp deep-qa-web/target/deep-qa-web-1.2.war ~/tomcat-8.0.27/apache-tomcat-8.0.27/webapps/
2121
echo copy war finished
22-
rm -rf ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
22+
rm -rf ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs
2323
echo old logs directory deleted
24-
mkdir ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs
24+
mkdir ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs
2525
echo mkdir logs directory
26-
chmod +x ~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/*.sh
27-
~/tomcat-8.0.21/apache-tomcat-8.0.21/bin/catalina.sh start
26+
chmod +x ~/tomcat-8.0.27/apache-tomcat-8.0.27/bin/*.sh
27+
~/tomcat-8.0.27/apache-tomcat-8.0.27/bin/catalina.sh start
2828
echo deep-qa-web-1.2 has been started
29-
tail -f ~/tomcat-8.0.21/apache-tomcat-8.0.21/logs/*
29+
tail -f ~/tomcat-8.0.27/apache-tomcat-8.0.27/logs/*

0 commit comments

Comments
 (0)