tomcat--作业-1

tomcat--作业-1

环境:虚拟机

ip:10.0.1.0

子网掩码:255.255.255.0

1.安装jdk1.8 +tomcat9.0 发布java项目
#步骤

测试环境:虚拟机
tomcat:10.0.1.130





1.上传jdk源码 解压源码

cd /data


tar zxvf  jdk-8u161-linux-x64.tar.gz

mv jdk1.8.0_161/ jdk1.8


2.添加环境变量
vi /etc/profile

  在末尾加入如下代码
JAVA_HOME=/data/jdk1.8  
JRE_HOME=/data/jdk1.8  
PATH=$JAVA_HOME/bin:$PATH  
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar  
export JAVA_HOME  
export PATH  
export CLASSPATH


3.生效环境变量-检查是否安装成功 
source /etc/profile

java  -version



4.上传tamcat源码-解压源码
cd /data
rz
tar zxvf apache-tomcat-8.5.43.tar.gz
mv apache-tomcat-8.5.43 tomcat


5.启动tomcat

cd /data/tomcat/bin

./startup.sh


6.发布war包(一般是都是开发会给你包的,你直接解压到发布目录就可以了)

cd /data/tomcat/webapps/ROOT

rz

unzip jpress-web-newest.war 


7.查看测试页面
10.0.1.130:8080




如下图

img

img

具体过程:
apache-tomcat-8.5.43/webapps/examples/jsp/async/async3.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/async/async3.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/async/index.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/async/index.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/Entries.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/Entry.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/JspCalendar.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/TableBean.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/cal1.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/cal/cal1.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/cal2.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/cal/cal2.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/calendar.html
apache-tomcat-8.5.43/webapps/examples/jsp/cal/login.html
apache-tomcat-8.5.43/webapps/examples/jsp/checkbox/CheckTest.html
apache-tomcat-8.5.43/webapps/examples/jsp/checkbox/check.html
apache-tomcat-8.5.43/webapps/examples/jsp/checkbox/checkresult.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/checkbox/checkresult.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/checkbox/cresult.html
apache-tomcat-8.5.43/webapps/examples/jsp/colors/ColorGameBean.html
apache-tomcat-8.5.43/webapps/examples/jsp/colors/clr.html
apache-tomcat-8.5.43/webapps/examples/jsp/colors/colors.html
apache-tomcat-8.5.43/webapps/examples/jsp/colors/colrs.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/colors/colrs.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/dates/date.html
apache-tomcat-8.5.43/webapps/examples/jsp/dates/date.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/dates/date.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/error/er.html
apache-tomcat-8.5.43/webapps/examples/jsp/error/err.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/error/err.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/error/error.html
apache-tomcat-8.5.43/webapps/examples/jsp/error/errorpge.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/error/errorpge.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/forward/forward.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/forward/forward.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/forward/fwd.html
apache-tomcat-8.5.43/webapps/examples/jsp/forward/one.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/forward/one.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/forward/two.html
apache-tomcat-8.5.43/webapps/examples/jsp/images/code.gif
apache-tomcat-8.5.43/webapps/examples/jsp/images/execute.gif
apache-tomcat-8.5.43/webapps/examples/jsp/images/return.gif
apache-tomcat-8.5.43/webapps/examples/jsp/include/foo.html
apache-tomcat-8.5.43/webapps/examples/jsp/include/foo.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/include/foo.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/include/inc.html
apache-tomcat-8.5.43/webapps/examples/jsp/include/include.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/include/include.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/index.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/Functions.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/ValuesBean.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/ValuesTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-arithmetic.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-arithmetic.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-arithmetic.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-comparisons.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-comparisons.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/basic-comparisons.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/composite.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/composite.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/composite.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/functions.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/functions.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/functions.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/implicit-objects.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/implicit-objects.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/el/implicit-objects.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/FooBean.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/HelloWorldSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/ShuffleSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/TileSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/jspattribute.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/jspattribute.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/jspattribute.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/shuffle.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/shuffle.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspattribute/shuffle.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/basic.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/basic.jspx
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/basic.jspx.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/svgexample.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/textRotate.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/textRotate.jpg
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/textRotate.jspx
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/jspx/textRotate.jspx.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/EchoAttributesTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/coda.jspf
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/coda.jspf.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/config.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/config.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/config.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/dynamicattrs.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/prelude.jspf
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/misc/prelude.jspf.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/BookBean.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/FindBookSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/Functions.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/HelloWorldSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/RepeatSimpleTag.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/book.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/book.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/book.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/hello.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/hello.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/hello.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/repeat.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/repeat.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/simpletag/repeat.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/displayProducts.tag.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/hello.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/hello.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/hello.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/helloWorld.tag.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/panel.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/panel.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/panel.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/panel.tag.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/products.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/products.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsp2/tagfiles/products.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/ServletToJsp.java.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/hello.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/hello.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/jsptoservlet.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/jsptoservlet.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/jsptoserv/jts.html
apache-tomcat-8.5.43/webapps/examples/jsp/num/numguess.html
apache-tomcat-8.5.43/webapps/examples/jsp/num/numguess.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/num/numguess.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/plugin/applet/Clock2.class
apache-tomcat-8.5.43/webapps/examples/jsp/plugin/applet/Clock2.java
apache-tomcat-8.5.43/webapps/examples/jsp/plugin/plugin.html
apache-tomcat-8.5.43/webapps/examples/jsp/plugin/plugin.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/plugin/plugin.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/error.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/error.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/index.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/index.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/login.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/security/protected/login.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/sessions/DummyCart.html
apache-tomcat-8.5.43/webapps/examples/jsp/sessions/carts.html
apache-tomcat-8.5.43/webapps/examples/jsp/sessions/carts.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/sessions/carts.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/sessions/crt.html
apache-tomcat-8.5.43/webapps/examples/jsp/simpletag/foo.html
apache-tomcat-8.5.43/webapps/examples/jsp/simpletag/foo.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/simpletag/foo.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/snp/snoop.html
apache-tomcat-8.5.43/webapps/examples/jsp/snp/snoop.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/snp/snoop.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/choose.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/choose.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/choose.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/foreach.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/foreach.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/foreach.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/howto.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/if.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/if.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/if.jsp.html
apache-tomcat-8.5.43/webapps/examples/jsp/tagplugin/notes.html
apache-tomcat-8.5.43/webapps/examples/jsp/xml/xml.html
apache-tomcat-8.5.43/webapps/examples/jsp/xml/xml.jsp
apache-tomcat-8.5.43/webapps/examples/jsp/xml/xml.jsp.html
apache-tomcat-8.5.43/webapps/examples/servlets/cookies.html
apache-tomcat-8.5.43/webapps/examples/servlets/helloworld.html
apache-tomcat-8.5.43/webapps/examples/servlets/images/code.gif
apache-tomcat-8.5.43/webapps/examples/servlets/images/execute.gif
apache-tomcat-8.5.43/webapps/examples/servlets/images/return.gif
apache-tomcat-8.5.43/webapps/examples/servlets/index.html
apache-tomcat-8.5.43/webapps/examples/servlets/nonblocking/bytecounter.html
apache-tomcat-8.5.43/webapps/examples/servlets/reqheaders.html
apache-tomcat-8.5.43/webapps/examples/servlets/reqinfo.html
apache-tomcat-8.5.43/webapps/examples/servlets/reqparams.html
apache-tomcat-8.5.43/webapps/examples/servlets/sessions.html
apache-tomcat-8.5.43/webapps/examples/websocket/chat.xhtml
apache-tomcat-8.5.43/webapps/examples/websocket/drawboard.xhtml
apache-tomcat-8.5.43/webapps/examples/websocket/echo.xhtml
apache-tomcat-8.5.43/webapps/examples/websocket/index.xhtml
apache-tomcat-8.5.43/webapps/examples/websocket/snake.xhtml
apache-tomcat-8.5.43/webapps/host-manager/META-INF/context.xml
apache-tomcat-8.5.43/webapps/host-manager/WEB-INF/jsp/401.jsp
apache-tomcat-8.5.43/webapps/host-manager/WEB-INF/jsp/403.jsp
apache-tomcat-8.5.43/webapps/host-manager/WEB-INF/jsp/404.jsp
apache-tomcat-8.5.43/webapps/host-manager/WEB-INF/web.xml
apache-tomcat-8.5.43/webapps/host-manager/images/asf-logo.svg
apache-tomcat-8.5.43/webapps/host-manager/images/tomcat.gif
apache-tomcat-8.5.43/webapps/host-manager/index.jsp
apache-tomcat-8.5.43/webapps/host-manager/manager.xml
apache-tomcat-8.5.43/webapps/manager/META-INF/context.xml
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/401.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/403.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/404.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/connectorCerts.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/connectorCiphers.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/connectorTrustedCerts.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/jsp/sessionsList.jsp
apache-tomcat-8.5.43/webapps/manager/WEB-INF/web.xml
apache-tomcat-8.5.43/webapps/manager/images/asf-logo.svg
apache-tomcat-8.5.43/webapps/manager/images/tomcat.gif
apache-tomcat-8.5.43/webapps/manager/index.jsp
apache-tomcat-8.5.43/webapps/manager/status.xsd
apache-tomcat-8.5.43/webapps/manager/xform.xsl
apache-tomcat-8.5.43/bin/catalina.sh
apache-tomcat-8.5.43/bin/ciphers.sh
apache-tomcat-8.5.43/bin/configtest.sh
apache-tomcat-8.5.43/bin/daemon.sh
apache-tomcat-8.5.43/bin/digest.sh
apache-tomcat-8.5.43/bin/setclasspath.sh
apache-tomcat-8.5.43/bin/shutdown.sh
apache-tomcat-8.5.43/bin/startup.sh
apache-tomcat-8.5.43/bin/tool-wrapper.sh
apache-tomcat-8.5.43/bin/version.sh
[root@tomcat1 data]# tar zxvf apache-tomcat-8.5.43.tar.gz ^C
[root@tomcat1 data]# ls
apache-tomcat-8.5.43  apache-tomcat-8.5.43.tar.gz  jdk1.8  jdk-8u161-linux-x64.tar.gz
[root@tomcat1 data]# mv apache-tomcat-8.5.43 tomcat
[root@tomcat1 data]# ls
apache-tomcat-8.5.43.tar.gz  jdk1.8  jdk-8u161-linux-x64.tar.gz  tomcat
[root@tomcat1 data]# cd tomcat/
[root@tomcat1 tomcat]# ls
bin           conf             lib      logs    README.md      RUNNING.txt  webapps
BUILDING.txt  CONTRIBUTING.md  LICENSE  NOTICE  RELEASE-NOTES  temp         work
[root@tomcat1 tomcat]# cd bin/
[root@tomcat1 bin]# ls
bootstrap.jar       ciphers.sh                    daemon.sh         shutdown.bat     tomcat-native.tar.gz
catalina.bat        commons-daemon.jar            digest.bat        shutdown.sh      tool-wrapper.bat
catalina.sh         commons-daemon-native.tar.gz  digest.sh         startup.bat      tool-wrapper.sh
catalina-tasks.xml  configtest.bat                setclasspath.bat  startup.sh       version.bat
ciphers.bat         configtest.sh                 setclasspath.sh   tomcat-juli.jar  version.sh
[root@tomcat1 bin]# ./startup.sh 
Using CATALINA_BASE:   /data/tomcat
Using CATALINA_HOME:   /data/tomcat
Using CATALINA_TMPDIR: /data/tomcat/temp
Using JRE_HOME:        /data/jdk1.8
Using CLASSPATH:       /data/tomcat/bin/bootstrap.jar:/data/tomcat/bin/tomcat-juli.jar
Tomcat started.
[root@tomcat1 bin]# ps aux|grep tomcat
root       2314  9.6  6.6 2292712 66364 pts/0   Sl   22:12   0:01 /data/jdk1.8/bin/java -Djava.util.logging.config.file=/data/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /data/tomcat/bin/bootstrap.jar:/data/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/data/tomcat -Dcatalina.home=/data/tomcat -Djava.io.tmpdir=/data/tomcat/temp org.apache.catalina.startup.Bootstrap start
root       2358  0.0  0.0 112640   956 pts/0    R+   22:13   0:00 grep --color=auto tomcat
[root@tomcat1 bin]# pkill -9 tomcat
[root@tomcat1 bin]# ps aux|grep tomcat
root       2314  3.9  6.7 2292712 67456 pts/0   Sl   22:12   0:01 /data/jdk1.8/bin/java -Djava.util.logging.config.file=/data/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /data/tomcat/bin/bootstrap.jar:/data/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/data/tomcat -Dcatalina.home=/data/tomcat -Djava.io.tmpdir=/data/tomcat/temp org.apache.catalina.startup.Bootstrap start
root       2361  0.0  0.0 112640   956 pts/0    R+   22:13   0:00 grep --color=auto tomcat
[root@tomcat1 bin]# cd ..
[root@tomcat1 tomcat]# cd webapps/
[root@tomcat1 webapps]# ls
docs  examples  host-manager  manager  ROOT
[root@tomcat1 webapps]# cd ROOT/
[root@tomcat1 ROOT]# LS
-bash: LS: command not found
[root@tomcat1 ROOT]# ls
asf-logo-wide.svg  bg-nav.png    index.jsp          tomcat.gif        tomcat.svg
bg-button.png      bg-upper.png  RELEASE-NOTES.txt  tomcat.png        WEB-INF
bg-middle.png      favicon.ico   tomcat.css         tomcat-power.gif
[root@tomcat1 ROOT]# rm -rf *
[root@tomcat1 ROOT]# ls
[root@tomcat1 ROOT]# echo laoliu666 >index.jsp
[root@tomcat1 ROOT]# ls
index.jsp
[root@tomcat1 ROOT]# pwd
/data/tomcat/webapps/ROOT
[root@tomcat1 ROOT]# rz

[root@tomcat1 ROOT]# ls
index.jsp  jpress-web-newest.war
[root@tomcat1 ROOT]# unzip jpress-web-newest.war 
Archive:  jpress-web-newest.war
   creating: META-INF/
  inflating: META-INF/MANIFEST.MF    
   creating: static/
   creating: static/ace/
   creating: static/bootstrap/
   creating: static/bootstrap/css/
   creating: static/bootstrap/fonts/
   creating: static/bootstrap/js/
   creating: static/font-awesome/
   creating: static/font-awesome/css/
   creating: static/font-awesome/fonts/
   creating: static/jpress/
   creating: static/jpress/admin/
   creating: static/jpress/admin/css/
   creating: static/jpress/admin/image/
   creating: static/jpress/admin/js/
   creating: static/layer/
   creating: static/layer/extend/
   creating: static/layer/skin/
   creating: static/layer/skin/default/
   creating: static/lte/
   creating: static/lte/css/
   creating: static/lte/css/skins/
   creating: static/lte/img/
   creating: static/lte/img/credit/
   creating: static/lte/js/
   creating: static/lte/js/pages/
   creating: static/plugins/
   creating: static/plugins/editable/
   creating: static/plugins/fastclick/
   creating: static/plugins/fine-uploader/
   creating: static/plugins/fine-uploader/placeholders/
   creating: static/plugins/fine-uploader/templates/
   creating: static/plugins/html5/
   creating: static/plugins/jquery/
   creating: static/plugins/pace/
   creating: static/plugins/slimScroll/
   creating: static/plugins/tag/
   creating: static/plugins/toastr/
   creating: static/simplemde/
   creating: static/tinymce/
   creating: static/tinymce/langs/
   creating: static/tinymce/plugins/
   creating: static/tinymce/plugins/advlist/
   creating: static/tinymce/plugins/anchor/
   creating: static/tinymce/plugins/autolink/
   creating: static/tinymce/plugins/autoresize/
   creating: static/tinymce/plugins/autosave/
   creating: static/tinymce/plugins/bbcode/
   creating: static/tinymce/plugins/charmap/
   creating: static/tinymce/plugins/code/
   creating: static/tinymce/plugins/codesample/
   creating: static/tinymce/plugins/codesample/css/
   creating: static/tinymce/plugins/colorpicker/
   creating: static/tinymce/plugins/contextmenu/
   creating: static/tinymce/plugins/directionality/
   creating: static/tinymce/plugins/emoticons/
   creating: static/tinymce/plugins/emoticons/img/
   creating: static/tinymce/plugins/example/
   creating: static/tinymce/plugins/example_dependency/
   creating: static/tinymce/plugins/fullpage/
   creating: static/tinymce/plugins/fullscreen/
   creating: static/tinymce/plugins/hr/
   creating: static/tinymce/plugins/image/
   creating: static/tinymce/plugins/imagetools/
   creating: static/tinymce/plugins/importcss/
   creating: static/tinymce/plugins/insertdatetime/
   creating: static/tinymce/plugins/layer/
   creating: static/tinymce/plugins/legacyoutput/
   creating: static/tinymce/plugins/link/
   creating: static/tinymce/plugins/lists/
   creating: static/tinymce/plugins/media/
   creating: static/tinymce/plugins/nonbreaking/
   creating: static/tinymce/plugins/noneditable/
   creating: static/tinymce/plugins/pagebreak/
   creating: static/tinymce/plugins/paste/
   creating: static/tinymce/plugins/preview/
   creating: static/tinymce/plugins/print/
   creating: static/tinymce/plugins/save/
   creating: static/tinymce/plugins/searchreplace/
   creating: static/tinymce/plugins/spellchecker/
   creating: static/tinymce/plugins/tabfocus/
   creating: static/tinymce/plugins/table/
   creating: static/tinymce/plugins/template/
   creating: static/tinymce/plugins/textcolor/
   creating: static/tinymce/plugins/textpattern/
   creating: static/tinymce/plugins/visualblocks/
   creating: static/tinymce/plugins/visualblocks/css/
   creating: static/tinymce/plugins/visualchars/
   creating: static/tinymce/plugins/wordcount/
   creating: static/tinymce/skins/
   creating: static/tinymce/skins/lightgray/
   creating: static/tinymce/skins/lightgray/fonts/
   creating: static/tinymce/skins/lightgray/img/
   creating: static/tinymce/themes/
   creating: static/tinymce/themes/modern/
   creating: templates/
   creating: templates/JBlog/
   creating: templates/JBlog/assets/
   creating: templates/JBlog/assets/css/
   creating: templates/JBlog/assets/font-awesome/
   creating: templates/JBlog/assets/font-awesome/css/
   creating: templates/JBlog/assets/font-awesome/fonts/
   creating: templates/JBlog/assets/highlight/
   creating: templates/JBlog/assets/highlight/styles/
   creating: templates/JBlog/assets/images/
   creating: templates/JBlog/assets/js/
   creating: templates/JBlog/assets/mediaelement/
   creating: templates/the3/
   creating: templates/the3/_inc/
   creating: templates/the3/css/
   creating: templates/the3/imgs/
   creating: templates/the3/js/
   creating: templates/the3/js/swiper/
   creating: templates/the3/js/swiper/css/
   creating: templates/the3/js/swiper/js/
   creating: WEB-INF/
   creating: WEB-INF/admin/
   creating: WEB-INF/admin/_inc/
   creating: WEB-INF/admin/addon/
   creating: WEB-INF/admin/attachment/
   creating: WEB-INF/admin/comment/
   creating: WEB-INF/admin/content/
   creating: WEB-INF/admin/option/
   creating: WEB-INF/admin/taxonomy/
   creating: WEB-INF/admin/template/
   creating: WEB-INF/admin/tools/
   creating: WEB-INF/admin/user/
   creating: WEB-INF/admin/wechat/
   creating: WEB-INF/classes/
   creating: WEB-INF/classes/io/
   creating: WEB-INF/classes/io/jpress/
   creating: WEB-INF/classes/io/jpress/admin/
   creating: WEB-INF/classes/io/jpress/admin/controller/
   creating: WEB-INF/classes/io/jpress/core/
   creating: WEB-INF/classes/io/jpress/core/addon/
   creating: WEB-INF/classes/io/jpress/core/cache/
   creating: WEB-INF/classes/io/jpress/core/interceptor/
   creating: WEB-INF/classes/io/jpress/core/render/
   creating: WEB-INF/classes/io/jpress/core/render/freemarker/
   creating: WEB-INF/classes/io/jpress/front/
   creating: WEB-INF/classes/io/jpress/front/controller/
   creating: WEB-INF/classes/io/jpress/install/
   creating: WEB-INF/classes/io/jpress/interceptor/
   creating: WEB-INF/classes/io/jpress/listener/
   creating: WEB-INF/classes/io/jpress/menu/
   creating: WEB-INF/classes/io/jpress/notify/
   creating: WEB-INF/classes/io/jpress/notify/email/
   creating: WEB-INF/classes/io/jpress/notify/sms/
   creating: WEB-INF/classes/io/jpress/router/
   creating: WEB-INF/classes/io/jpress/router/converter/
   creating: WEB-INF/classes/io/jpress/ui/
   creating: WEB-INF/classes/io/jpress/ui/freemarker/
   creating: WEB-INF/classes/io/jpress/ui/freemarker/function/
   creating: WEB-INF/classes/io/jpress/ui/freemarker/tag/
   creating: WEB-INF/classes/io/jpress/wechat/
   creating: WEB-INF/classes/io/jpress/wechat/processer/
   creating: WEB-INF/install/
   creating: WEB-INF/install/_inc/
   creating: WEB-INF/install/sqls/
   creating: WEB-INF/lib/
  inflating: robots.txt              
  inflating: static/ace/ace.js       
  inflating: static/ace/LICENSE      
  inflating: static/ace/mode-css.js  
  inflating: static/ace/mode-javascript.js  
  inflating: static/ace/mode-jsp.js  
  inflating: static/ace/mode-xml.js  
  inflating: static/ace/theme-eclipse.js  
  inflating: static/bootstrap/css/bootstrap.css  
  inflating: static/bootstrap/css/bootstrap.css.map  
  inflating: static/bootstrap/css/bootstrap.min.css  
  inflating: static/bootstrap/fonts/glyphicons-halflings-regular.eot  
  inflating: static/bootstrap/fonts/glyphicons-halflings-regular.svg  
  inflating: static/bootstrap/fonts/glyphicons-halflings-regular.ttf  
  inflating: static/bootstrap/fonts/glyphicons-halflings-regular.woff  
  inflating: static/bootstrap/fonts/glyphicons-halflings-regular.woff2  
  inflating: static/bootstrap/js/bootstrap.js  
  inflating: static/bootstrap/js/bootstrap.min.js  
  inflating: static/font-awesome/css/font-awesome.css  
  inflating: static/font-awesome/css/font-awesome.css.map  
  inflating: static/font-awesome/css/font-awesome.min.css  
  inflating: static/font-awesome/fonts/fontawesome-webfont.eot  
  inflating: static/font-awesome/fonts/fontawesome-webfont.svg  
  inflating: static/font-awesome/fonts/fontawesome-webfont.ttf  
  inflating: static/font-awesome/fonts/fontawesome-webfont.woff  
  inflating: static/font-awesome/fonts/fontawesome-webfont.woff2  
  inflating: static/font-awesome/fonts/FontAwesome.otf  
  inflating: static/jpress/admin/css/common.css  
  inflating: static/jpress/admin/image/avatar.jpg  
  inflating: static/jpress/admin/image/nothumbnail.jpg  
  inflating: static/jpress/admin/js/common.js  
  inflating: static/layer/extend/layer.ext.js  
  inflating: static/layer/layer.js   
  inflating: static/layer/skin/default/icon-ext.png  
  inflating: static/layer/skin/default/icon.png  
  inflating: static/layer/skin/default/loading-0.gif  
  inflating: static/layer/skin/default/loading-1.gif  
  inflating: static/layer/skin/default/loading-2.gif  
  inflating: static/layer/skin/layer.css  
  inflating: static/layer/skin/layer.ext.css  
  inflating: static/lte/css/AdminLTE.css  
  inflating: static/lte/css/AdminLTE.min.css  
  inflating: static/lte/css/skins/_all-skins.css  
  inflating: static/lte/css/skins/_all-skins.min.css  
  inflating: static/lte/css/skins/skin-black-light.css  
  inflating: static/lte/css/skins/skin-black-light.min.css  
  inflating: static/lte/css/skins/skin-black.css  
  inflating: static/lte/css/skins/skin-black.min.css  
  inflating: static/lte/css/skins/skin-blue-light.css  
  inflating: static/lte/css/skins/skin-blue-light.min.css  
  inflating: static/lte/css/skins/skin-blue.css  
  inflating: static/lte/css/skins/skin-blue.min.css  
  inflating: static/lte/css/skins/skin-green-light.css  
  inflating: static/lte/css/skins/skin-green-light.min.css  
  inflating: static/lte/css/skins/skin-green.css  
  inflating: static/lte/css/skins/skin-green.min.css  
  inflating: static/lte/css/skins/skin-purple-light.css  
  inflating: static/lte/css/skins/skin-purple-light.min.css  
  inflating: static/lte/css/skins/skin-purple.css  
  inflating: static/lte/css/skins/skin-purple.min.css  
  inflating: static/lte/css/skins/skin-red-light.css  
  inflating: static/lte/css/skins/skin-red-light.min.css  
  inflating: static/lte/css/skins/skin-red.css  
  inflating: static/lte/css/skins/skin-red.min.css  
  inflating: static/lte/css/skins/skin-yellow-light.css  
  inflating: static/lte/css/skins/skin-yellow-light.min.css  
  inflating: static/lte/css/skins/skin-yellow.css  
  inflating: static/lte/css/skins/skin-yellow.min.css  
  inflating: static/lte/img/avatar.png  
  inflating: static/lte/img/avatar04.png  
  inflating: static/lte/img/avatar2.png  
  inflating: static/lte/img/avatar3.png  
  inflating: static/lte/img/avatar5.png  
  inflating: static/lte/img/boxed-bg.jpg  
  inflating: static/lte/img/boxed-bg.png  
  inflating: static/lte/img/credit/american-express.png  
  inflating: static/lte/img/credit/cirrus.png  
  inflating: static/lte/img/credit/mastercard.png  
  inflating: static/lte/img/credit/mestro.png  
  inflating: static/lte/img/credit/paypal.png  
  inflating: static/lte/img/credit/paypal2.png  
  inflating: static/lte/img/credit/visa.png  
  inflating: static/lte/img/default-50x50.gif  
  inflating: static/lte/img/icons.png  
  inflating: static/lte/img/photo1.png  
  inflating: static/lte/img/photo2.png  
  inflating: static/lte/img/photo3.jpg  
  inflating: static/lte/img/photo4.jpg  
  inflating: static/lte/img/user1-128x128.jpg  
  inflating: static/lte/img/user2-160x160.jpg  
  inflating: static/lte/img/user3-128x128.jpg  
  inflating: static/lte/img/user4-128x128.jpg  
  inflating: static/lte/img/user5-128x128.jpg  
  inflating: static/lte/img/user6-128x128.jpg  
  inflating: static/lte/img/user7-128x128.jpg  
  inflating: static/lte/img/user8-128x128.jpg  
  inflating: static/lte/js/app.js    
  inflating: static/lte/js/app.min.js  
  inflating: static/lte/js/demo.js   
  inflating: static/lte/js/pages/dashboard.js  
  inflating: static/lte/js/pages/dashboard2.js  
  inflating: static/plugins/editable/bootstrap-editable.css  
  inflating: static/plugins/editable/bootstrap-editable.min.js  
  inflating: static/plugins/fastclick/fastclick.js  
  inflating: static/plugins/fastclick/fastclick.min.js  
  inflating: static/plugins/fine-uploader/continue.gif  
  inflating: static/plugins/fine-uploader/edit.gif  
  inflating: static/plugins/fine-uploader/fine-uploader-gallery.css  
  inflating: static/plugins/fine-uploader/fine-uploader-gallery.min.css  
  inflating: static/plugins/fine-uploader/fine-uploader-new.css  
  inflating: static/plugins/fine-uploader/fine-uploader-new.min.css  
  inflating: static/plugins/fine-uploader/fine-uploader.css  
  inflating: static/plugins/fine-uploader/fine-uploader.min.css  
  inflating: static/plugins/fine-uploader/iframe.xss.response.js  
  inflating: static/plugins/fine-uploader/jquery.fine-uploader.js  
  inflating: static/plugins/fine-uploader/jquery.fine-uploader.min.js  
  inflating: static/plugins/fine-uploader/LICENSE  
  inflating: static/plugins/fine-uploader/loading.gif  
  inflating: static/plugins/fine-uploader/pause.gif  
  inflating: static/plugins/fine-uploader/placeholders/not_available-generic.png  
  inflating: static/plugins/fine-uploader/placeholders/waiting-generic.png  
  inflating: static/plugins/fine-uploader/processing.gif  
  inflating: static/plugins/fine-uploader/retry.gif  
  inflating: static/plugins/fine-uploader/templates/default.html  
  inflating: static/plugins/fine-uploader/templates/gallery.html  
  inflating: static/plugins/fine-uploader/templates/simple-thumbnails.html  
  inflating: static/plugins/fine-uploader/trash.gif  
  inflating: static/plugins/html5/html5shiv.min.js  
  inflating: static/plugins/html5/respond.min.js  
  inflating: static/plugins/jquery/jquery-2.1.4.min.js  
  inflating: static/plugins/jquery/jquery.form.min.js  
  inflating: static/plugins/pace/pace.css  
  inflating: static/plugins/pace/pace.js  
  inflating: static/plugins/pace/pace.min.css  
  inflating: static/plugins/pace/pace.min.js  
  inflating: static/plugins/slimScroll/jquery.slimscroll.js  
  inflating: static/plugins/slimScroll/jquery.slimscroll.min.js  
  inflating: static/plugins/tag/bower.json  
  inflating: static/plugins/tag/demo.html  
  inflating: static/plugins/tag/jquery.caret.min.js  
  inflating: static/plugins/tag/jquery.tag-editor.css  
  inflating: static/plugins/tag/jquery.tag-editor.js  
  inflating: static/plugins/tag/jquery.tag-editor.min.js  
  inflating: static/plugins/tag/readme.md  
  inflating: static/plugins/tag/tag-editor.jquery.json  
  inflating: static/plugins/toastr/toastr.css  
  inflating: static/plugins/toastr/toastr.js  
  inflating: static/simplemde/simplemde.min.css  
  inflating: static/simplemde/simplemde.min.js  
  inflating: static/tinymce/jquery.tinymce.min.js  
  inflating: static/tinymce/langs/readme.md  
  inflating: static/tinymce/langs/zh_CN.js  
  inflating: static/tinymce/license.txt  
  inflating: static/tinymce/plugins/advlist/plugin.min.js  
  inflating: static/tinymce/plugins/anchor/plugin.min.js  
  inflating: static/tinymce/plugins/autolink/plugin.min.js  
  inflating: static/tinymce/plugins/autoresize/plugin.min.js  
  inflating: static/tinymce/plugins/autosave/plugin.min.js  
  inflating: static/tinymce/plugins/bbcode/plugin.min.js  
  inflating: static/tinymce/plugins/charmap/plugin.min.js  
  inflating: static/tinymce/plugins/code/plugin.min.js  
  inflating: static/tinymce/plugins/codesample/css/prism.css  
  inflating: static/tinymce/plugins/codesample/plugin.min.js  
  inflating: static/tinymce/plugins/colorpicker/plugin.min.js  
  inflating: static/tinymce/plugins/contextmenu/plugin.min.js  
  inflating: static/tinymce/plugins/directionality/plugin.min.js  
  inflating: static/tinymce/plugins/emoticons/img/smiley-cool.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-cry.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-embarassed.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-frown.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-innocent.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-kiss.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-laughing.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-money-mouth.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-sealed.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-smile.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-surprised.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-tongue-out.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-undecided.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-wink.gif  
  inflating: static/tinymce/plugins/emoticons/img/smiley-yell.gif  
  inflating: static/tinymce/plugins/emoticons/plugin.min.js  
  inflating: static/tinymce/plugins/example/dialog.html  
  inflating: static/tinymce/plugins/example/plugin.min.js  
  inflating: static/tinymce/plugins/example_dependency/plugin.min.js  
  inflating: static/tinymce/plugins/fullpage/plugin.min.js  
  inflating: static/tinymce/plugins/fullscreen/plugin.min.js  
  inflating: static/tinymce/plugins/hr/plugin.min.js  
  inflating: static/tinymce/plugins/image/plugin.min.js  
  inflating: static/tinymce/plugins/imagetools/plugin.min.js  
  inflating: static/tinymce/plugins/importcss/plugin.min.js  
  inflating: static/tinymce/plugins/insertdatetime/plugin.min.js  
  inflating: static/tinymce/plugins/layer/plugin.min.js  
  inflating: static/tinymce/plugins/legacyoutput/plugin.min.js  
  inflating: static/tinymce/plugins/link/plugin.min.js  
  inflating: static/tinymce/plugins/lists/plugin.min.js  
  inflating: static/tinymce/plugins/media/moxieplayer.swf  
  inflating: static/tinymce/plugins/media/plugin.min.js  
  inflating: static/tinymce/plugins/nonbreaking/plugin.min.js  
  inflating: static/tinymce/plugins/noneditable/plugin.min.js  
  inflating: static/tinymce/plugins/pagebreak/plugin.min.js  
  inflating: static/tinymce/plugins/paste/plugin.min.js  
  inflating: static/tinymce/plugins/preview/plugin.min.js  
  inflating: static/tinymce/plugins/print/plugin.min.js  
  inflating: static/tinymce/plugins/save/plugin.min.js  
  inflating: static/tinymce/plugins/searchreplace/plugin.min.js  
  inflating: static/tinymce/plugins/spellchecker/plugin.min.js  
  inflating: static/tinymce/plugins/tabfocus/plugin.min.js  
  inflating: static/tinymce/plugins/table/plugin.min.js  
  inflating: static/tinymce/plugins/template/plugin.min.js  
  inflating: static/tinymce/plugins/textcolor/plugin.min.js  
  inflating: static/tinymce/plugins/textpattern/plugin.min.js  
  inflating: static/tinymce/plugins/visualblocks/css/visualblocks.css  
  inflating: static/tinymce/plugins/visualblocks/plugin.min.js  
  inflating: static/tinymce/plugins/visualchars/plugin.min.js  
  inflating: static/tinymce/plugins/wordcount/plugin.min.js  
  inflating: static/tinymce/skins/lightgray/content.inline.min.css  
  inflating: static/tinymce/skins/lightgray/content.min.css  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce-small.eot  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce-small.svg  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce-small.ttf  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce-small.woff  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce.eot  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce.svg  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce.ttf  
  inflating: static/tinymce/skins/lightgray/fonts/tinymce.woff  
  inflating: static/tinymce/skins/lightgray/img/anchor.gif  
  inflating: static/tinymce/skins/lightgray/img/loader.gif  
  inflating: static/tinymce/skins/lightgray/img/object.gif  
  inflating: static/tinymce/skins/lightgray/img/trans.gif  
  inflating: static/tinymce/skins/lightgray/skin.ie7.min.css  
  inflating: static/tinymce/skins/lightgray/skin.min.css  
  inflating: static/tinymce/themes/modern/theme.min.js  
  inflating: static/tinymce/tinymce.min.js  
  inflating: templates/JBlog/404.html  
  inflating: templates/JBlog/_content_box1.html  
  inflating: templates/JBlog/_content_box2.html  
  inflating: templates/JBlog/_layout.html  
  inflating: templates/JBlog/_searcher_box.html  
  inflating: templates/JBlog/_tags_box.html  
  inflating: templates/JBlog/assets/css/app.css  
  inflating: templates/JBlog/assets/font-awesome/css/font-awesome.min.css  
  inflating: templates/JBlog/assets/font-awesome/fonts/fontawesome-webfont.eot  
  inflating: templates/JBlog/assets/font-awesome/fonts/fontawesome-webfont.svg  
  inflating: templates/JBlog/assets/font-awesome/fonts/fontawesome-webfont.ttf  
  inflating: templates/JBlog/assets/font-awesome/fonts/fontawesome-webfont.woff  
  inflating: templates/JBlog/assets/font-awesome/fonts/fontawesome-webfont.woff2  
  inflating: templates/JBlog/assets/font-awesome/fonts/FontAwesome.otf  
  inflating: templates/JBlog/assets/highlight/highlight.js  
  inflating: templates/JBlog/assets/highlight/LICENSE  
  inflating: templates/JBlog/assets/highlight/styles/zenburn.css  
  inflating: templates/JBlog/assets/images/avatar.jpg  
  inflating: templates/JBlog/assets/images/banner.jpg  
  inflating: templates/JBlog/assets/images/oschina.jpg  
  inflating: templates/JBlog/assets/images/qq.jpg  
  inflating: templates/JBlog/assets/js/jquery-2.1.1.min.js  
  inflating: templates/JBlog/assets/mediaelement/background.png  
  inflating: templates/JBlog/assets/mediaelement/bigplay.fw.png  
  inflating: templates/JBlog/assets/mediaelement/bigplay.png  
  inflating: templates/JBlog/assets/mediaelement/bigplay.svg  
  inflating: templates/JBlog/assets/mediaelement/controls-ted.png  
  inflating: templates/JBlog/assets/mediaelement/controls-wmp-bg.png  
  inflating: templates/JBlog/assets/mediaelement/controls-wmp.png  
  inflating: templates/JBlog/assets/mediaelement/controls.fw.png  
  inflating: templates/JBlog/assets/mediaelement/controls.png  
  inflating: templates/JBlog/assets/mediaelement/controls.svg  
  inflating: templates/JBlog/assets/mediaelement/DO NOT CHANGE THESE FILES. USE -src- FOLDER.txt  
  inflating: templates/JBlog/assets/mediaelement/flashmediaelement-cdn.swf  
  inflating: templates/JBlog/assets/mediaelement/flashmediaelement-debug.swf  
  inflating: templates/JBlog/assets/mediaelement/flashmediaelement.swf  
  inflating: templates/JBlog/assets/mediaelement/jquery.js  
  inflating: templates/JBlog/assets/mediaelement/jumpforward.png  
  inflating: templates/JBlog/assets/mediaelement/loading.gif  
  inflating: templates/JBlog/assets/mediaelement/mediaelement-and-player.js  
  inflating: templates/JBlog/assets/mediaelement/mediaelement-and-player.min.js  
  inflating: templates/JBlog/assets/mediaelement/mediaelement.js  
  inflating: templates/JBlog/assets/mediaelement/mediaelement.min.js  
  inflating: templates/JBlog/assets/mediaelement/mediaelementplayer.css  
  inflating: templates/JBlog/assets/mediaelement/mediaelementplayer.js  
  inflating: templates/JBlog/assets/mediaelement/mediaelementplayer.min.css  
  inflating: templates/JBlog/assets/mediaelement/mediaelementplayer.min.js  
  inflating: templates/JBlog/assets/mediaelement/mejs-skins.css  
  inflating: templates/JBlog/assets/mediaelement/silverlightmediaelement.xap  
  inflating: templates/JBlog/assets/mediaelement/skipback.png  
  inflating: templates/JBlog/content.html  
  inflating: templates/JBlog/index.html  
  inflating: templates/JBlog/search.html  
  inflating: templates/JBlog/taxonomy_article.html  
  inflating: templates/JBlog/tpl_config.xml  
  inflating: templates/JBlog/tpl_screenshot.png  
  inflating: templates/JBlog/tpl_setting.html  
  inflating: templates/JBlog/user_center.html  
  inflating: templates/JBlog/user_login.html  
  inflating: templates/JBlog/user_register.html  
  inflating: templates/the3/404.html  
  inflating: templates/the3/500.html  
  inflating: templates/the3/_inc/_comments.html  
  inflating: templates/the3/_inc/_hot_articles.html  
  inflating: templates/the3/_inc/_hot_tags.html  
  inflating: templates/the3/_inc/_layout.html  
  inflating: templates/the3/_inc/_paginate.html  
  inflating: templates/the3/_inc/_tinymce.html  
  inflating: templates/the3/_inc/_ucenter_aside.html  
  inflating: templates/the3/content_article.html  
  inflating: templates/the3/content_article_blog.html  
  inflating: templates/the3/content_article_music.html  
  inflating: templates/the3/content_forum.html  
  inflating: templates/the3/content_page.html  
  inflating: templates/the3/css/style.css  
  inflating: templates/the3/imgs/avatar.jpg  
  inflating: templates/the3/imgs/logo.png  
  inflating: templates/the3/index.html  
  inflating: templates/the3/js/jcommon.js  
  inflating: templates/the3/js/swiper/css/swiper.min.css  
  inflating: templates/the3/js/swiper/js/swiper.min.js  
  inflating: templates/the3/taxonomy_article.html  
  inflating: templates/the3/taxonomy_forum.html  
  inflating: templates/the3/tpl_config.xml  
  inflating: templates/the3/tpl_screenshot.png  
  inflating: templates/the3/tpl_setting.html  
  inflating: templates/the3/user_center_favorite_article.html  
  inflating: templates/the3/user_center_favorite_post.html  
  inflating: templates/the3/user_center_index.html  
  inflating: templates/the3/user_center_myarticle.html  
  inflating: templates/the3/user_center_mypost.html  
  inflating: templates/the3/user_login.html  
  inflating: templates/the3/user_register.html  
  inflating: templates/the3/user_resetpassord_step1.html  
  inflating: templates/the3/user_resetpassord_step2.html  
  inflating: templates/the3/user_resetpassord_step3.html  
  inflating: templates/the3/user_resetpassord_step4.html  
  inflating: WEB-INF/admin/_inc/_header.html  
  inflating: WEB-INF/admin/_inc/_layer_layout.html  
  inflating: WEB-INF/admin/_inc/_layout.html  
  inflating: WEB-INF/admin/_inc/_menu.html  
  inflating: WEB-INF/admin/_inc/_paginate.html  
  inflating: WEB-INF/admin/_inc/_paginate_wrapper.html  
  inflating: WEB-INF/admin/addon/index.html  
  inflating: WEB-INF/admin/addon/install.html  
  inflating: WEB-INF/admin/attachment/choose_layer.html  
  inflating: WEB-INF/admin/attachment/detail_layer.html  
  inflating: WEB-INF/admin/attachment/index.html  
  inflating: WEB-INF/admin/attachment/upload.html  
  inflating: WEB-INF/admin/comment/_action_box.html  
  inflating: WEB-INF/admin/comment/_props_box.html  
  inflating: WEB-INF/admin/comment/edit.html  
  inflating: WEB-INF/admin/comment/index.html  
  inflating: WEB-INF/admin/comment/reply_layer.html  
  inflating: WEB-INF/admin/content/_action_box.html  
  inflating: WEB-INF/admin/content/_edit_include.html  
  inflating: WEB-INF/admin/content/_index_include.html  
  inflating: WEB-INF/admin/content/_input_box.html  
  inflating: WEB-INF/admin/content/_props_box.html  
  inflating: WEB-INF/admin/content/_select_box.html  
  inflating: WEB-INF/admin/content/_style_box.html  
  inflating: WEB-INF/admin/content/_thumbnail_box.html  
  inflating: WEB-INF/admin/content/edit.html  
  inflating: WEB-INF/admin/content/index.html  
  inflating: WEB-INF/admin/index.html  
  inflating: WEB-INF/admin/login.html  
  inflating: WEB-INF/admin/option/_option_script.html  
  inflating: WEB-INF/admin/option/api.html  
  inflating: WEB-INF/admin/option/cdn.html  
  inflating: WEB-INF/admin/option/comment.html  
  inflating: WEB-INF/admin/option/notification.html  
  inflating: WEB-INF/admin/option/register.html  
  inflating: WEB-INF/admin/option/seo.html  
  inflating: WEB-INF/admin/option/url.html  
  inflating: WEB-INF/admin/option/watermark.html  
  inflating: WEB-INF/admin/option/web.html  
  inflating: WEB-INF/admin/taxonomy/_index_include.html  
  inflating: WEB-INF/admin/taxonomy/_setting_include.html  
  inflating: WEB-INF/admin/taxonomy/index.html  
  inflating: WEB-INF/admin/taxonomy/setting.html  
  inflating: WEB-INF/admin/template/edit.html  
  inflating: WEB-INF/admin/template/index.html  
  inflating: WEB-INF/admin/template/install.html  
  inflating: WEB-INF/admin/template/menu.html  
  inflating: WEB-INF/admin/template/setting.html  
  inflating: WEB-INF/admin/tools/_import.html  
  inflating: WEB-INF/admin/tools/druid.html  
  inflating: WEB-INF/admin/tools/export.html  
  inflating: WEB-INF/admin/tools/index.html  
  inflating: WEB-INF/admin/tools/wechatImport.html  
  inflating: WEB-INF/admin/tools/wordpressImport.html  
  inflating: WEB-INF/admin/user/_edit_include.html  
  inflating: WEB-INF/admin/user/_index_include.html  
  inflating: WEB-INF/admin/user/edit.html  
  inflating: WEB-INF/admin/user/index.html  
  inflating: WEB-INF/admin/wechat/edit.html  
  inflating: WEB-INF/admin/wechat/index.html  
  inflating: WEB-INF/admin/wechat/menu.html  
  inflating: WEB-INF/admin/wechat/option.html  
  inflating: WEB-INF/admin/wechat/reply_advanced.html  
  inflating: WEB-INF/admin/wechat/reply_default.html  
  inflating: WEB-INF/classes/db-simple.properties  
  inflating: WEB-INF/classes/ehcache.xml  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_AddonController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_AdminController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ApiController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_AttachmentController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_CommentController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ContentController$1.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ContentController$2.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ContentController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_OptionController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TaxonomyController$1.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TaxonomyController$2.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TaxonomyController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TemplateController$1.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TemplateController$2.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TemplateController$3.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TemplateController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TinymceImageController$StreamRender.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_TinymceImageController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ToolsController$WordPressUtils.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_ToolsController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_UserController$1.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_UserController.class  
  inflating: WEB-INF/classes/io/jpress/admin/controller/_WechatController.class  
  inflating: WEB-INF/classes/io/jpress/Config.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/Addon.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/AddonClassLoader.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/AddonInfo.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/AddonManager$1.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/AddonManager.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/Hook.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/HookInvoker.class  
  inflating: WEB-INF/classes/io/jpress/core/addon/Hooks.class  
  inflating: WEB-INF/classes/io/jpress/core/BaseFrontController.class  
  inflating: WEB-INF/classes/io/jpress/core/cache/ActionCache.class  
  inflating: WEB-INF/classes/io/jpress/core/cache/ActionCacheHandler.class  
  inflating: WEB-INF/classes/io/jpress/core/cache/ActionCacheManager.class  
  inflating: WEB-INF/classes/io/jpress/core/interceptor/ActionCacheClearInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/core/interceptor/HookInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/core/interceptor/JI18nInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/core/JBaseController.class  
  inflating: WEB-INF/classes/io/jpress/core/JBaseCRUDController.class  
  inflating: WEB-INF/classes/io/jpress/core/JHandler.class  
  inflating: WEB-INF/classes/io/jpress/core/Jpress.class  
  inflating: WEB-INF/classes/io/jpress/core/JpressConfig.class  
  inflating: WEB-INF/classes/io/jpress/core/JSession.class  
  inflating: WEB-INF/classes/io/jpress/core/JTokenCache.class  
  inflating: WEB-INF/classes/io/jpress/core/MyDruidStatViewHandler.class  
  inflating: WEB-INF/classes/io/jpress/core/render/AjaxResult.class  
  inflating: WEB-INF/classes/io/jpress/core/render/freemarker/BasePaginateTag$PaginateItem.class  
  inflating: WEB-INF/classes/io/jpress/core/render/freemarker/BasePaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/core/render/freemarker/JFunction.class  
  inflating: WEB-INF/classes/io/jpress/core/render/freemarker/JTag.class  
  inflating: WEB-INF/classes/io/jpress/core/render/JCaptchaRender.class  
  inflating: WEB-INF/classes/io/jpress/core/render/JErrorRenderFactory.class  
  inflating: WEB-INF/classes/io/jpress/core/render/JFreemarkerRender.class  
  inflating: WEB-INF/classes/io/jpress/core/render/JpressRenderFactory.class  
  inflating: WEB-INF/classes/io/jpress/core/render/ThymeleafRender.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/AddonController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/ApiController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/CaptchaController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/CommentController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/ContentController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/IndexController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/OauthController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/RssController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/SearchController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/SitemapController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/TaxonomyController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/UserController.class  
  inflating: WEB-INF/classes/io/jpress/front/controller/VisitorCounter.class  
  inflating: WEB-INF/classes/io/jpress/install/InstallController.class  
  inflating: WEB-INF/classes/io/jpress/install/InstallInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/install/InstallUtils.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/AdminInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/GlobelInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/InterUtils.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/JTokenInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/UCodeInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/interceptor/UserInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/listener/AdminMenuInitListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/AdminNotificationListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/AtProcessListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/AuthorNotificationListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/CommentListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/ContentCountUpdateListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/ContentListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/MenuChangedListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/SearcherActionListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/SettingChangedListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/UserActionListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/UserCommentCountUpdateListener.class  
  inflating: WEB-INF/classes/io/jpress/listener/UserContentCountChangedListener.class  
  inflating: WEB-INF/classes/io/jpress/menu/MenuGroup.class  
  inflating: WEB-INF/classes/io/jpress/menu/MenuItem.class  
  inflating: WEB-INF/classes/io/jpress/menu/MenuManager.class  
  inflating: WEB-INF/classes/io/jpress/notify/email/AliyunEmailSender.class  
  inflating: WEB-INF/classes/io/jpress/notify/email/Email.class  
  inflating: WEB-INF/classes/io/jpress/notify/email/EmailSenderFactory.class  
  inflating: WEB-INF/classes/io/jpress/notify/email/IEmailSender.class  
  inflating: WEB-INF/classes/io/jpress/notify/email/SimplerEmailSender.class  
  inflating: WEB-INF/classes/io/jpress/notify/sms/AlidayuSmsSender.class  
  inflating: WEB-INF/classes/io/jpress/notify/sms/ISmsSender.class  
  inflating: WEB-INF/classes/io/jpress/notify/sms/SmsMessage.class  
  inflating: WEB-INF/classes/io/jpress/notify/sms/SmsSenderFactory.class  
  inflating: WEB-INF/classes/io/jpress/router/converter/ContentRouter.class  
  inflating: WEB-INF/classes/io/jpress/router/converter/PageRouter.class  
  inflating: WEB-INF/classes/io/jpress/router/converter/TaxonomyRouter.class  
  inflating: WEB-INF/classes/io/jpress/router/RouterConverter.class  
  inflating: WEB-INF/classes/io/jpress/router/RouterManager.class  
  inflating: WEB-INF/classes/io/jpress/router/RouterMapping.class  
  inflating: WEB-INF/classes/io/jpress/router/RouterNotAllowConvert.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/MetadataChecked.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/MetadataSelected.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/OptionChecked.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/OptionSelected.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/OptionValue.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/function/TaxonomyBox.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ArchivesTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/CommentPageTag$CommentPaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/CommentPageTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ContentPageTag$ContentPaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ContentPageTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ContentsTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ContentTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/IndexPageTag$IndexPaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/IndexPageTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/MenusTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/ModulesTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/NextContentTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/PreviousContentTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/SearchResultPageTag$MyPaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/SearchResultPageTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/TagsTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/TaxonomysTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/TaxonomyTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/UserContentPageTag$MyPaginateTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/UserContentPageTag.class  
  inflating: WEB-INF/classes/io/jpress/ui/freemarker/tag/UsersTag.class  
  inflating: WEB-INF/classes/io/jpress/wechat/IMessageProcesser.class  
  inflating: WEB-INF/classes/io/jpress/wechat/MessageProcesser.class  
  inflating: WEB-INF/classes/io/jpress/wechat/processer/ContentsProcesser.class  
  inflating: WEB-INF/classes/io/jpress/wechat/processer/HelloProcesser.class  
  inflating: WEB-INF/classes/io/jpress/wechat/processer/NewestContentsProcesser.class  
  inflating: WEB-INF/classes/io/jpress/wechat/ProcesserManager.class  
  inflating: WEB-INF/classes/io/jpress/wechat/WechatApi.class  
  inflating: WEB-INF/classes/io/jpress/wechat/WechatApiConfigInterceptor.class  
  inflating: WEB-INF/classes/io/jpress/wechat/WechatConsts.class  
  inflating: WEB-INF/classes/io/jpress/wechat/WechatMessageController.class  
  inflating: WEB-INF/classes/io/jpress/wechat/WechatUserInterceptor.class  
  inflating: WEB-INF/classes/jpress.properties  
  inflating: WEB-INF/classes/language.properties  
  inflating: WEB-INF/classes/language_en_US.properties  
  inflating: WEB-INF/classes/language_zh_CN.properties  
  inflating: WEB-INF/classes/log4j.properties  
  inflating: WEB-INF/install/_inc/_layout.html  
  inflating: WEB-INF/install/finished.html  
  inflating: WEB-INF/install/sqls/mysql.sql  
  inflating: WEB-INF/install/step1.html  
  inflating: WEB-INF/install/step2.html  
  inflating: WEB-INF/install/step2_error.html  
  inflating: WEB-INF/install/step3.html  
  inflating: WEB-INF/lib/activation-1.1.jar  
  inflating: WEB-INF/lib/cglib-nodep-3.1.jar  
  inflating: WEB-INF/lib/cos-26Dec2008.jar  
  inflating: WEB-INF/lib/druid-1.0.22.jar  
  inflating: WEB-INF/lib/ehcache-2.10.2.2.21.jar  
  inflating: WEB-INF/lib/fastjson-1.2.12.jar  
  inflating: WEB-INF/lib/freemarker-2.3.23.jar  
  inflating: WEB-INF/lib/javax.mail-1.5.5.jar  
  inflating: WEB-INF/lib/javax.mail-api-1.5.5.jar  
  inflating: WEB-INF/lib/jfinal-2.2.jar  
  inflating: WEB-INF/lib/jfinal-weixin-1.7.jar  
  inflating: WEB-INF/lib/jpress-consts-1.0.jar  
  inflating: WEB-INF/lib/jpress-db-api-1.0.jar  
  inflating: WEB-INF/lib/jpress-db-mysql-1.0.jar  
  inflating: WEB-INF/lib/jpress-message-1.0.jar  
  inflating: WEB-INF/lib/jpress-model-1.0.jar  
  inflating: WEB-INF/lib/jpress-oauth2-1.0.jar  
  inflating: WEB-INF/lib/jpress-search-api-1.0.jar  
  inflating: WEB-INF/lib/jpress-search-dbsimple-1.0.jar  
  inflating: WEB-INF/lib/jpress-utils-1.0.jar  
  inflating: WEB-INF/lib/jsoup-1.9.2.jar  
  inflating: WEB-INF/lib/log4j-1.2.17.jar  
  inflating: WEB-INF/lib/mysql-connector-java-5.1.21.jar  
  inflating: WEB-INF/lib/slf4j-api-1.7.21.jar  
  inflating: WEB-INF/lib/slf4j-log4j12-1.7.21.jar  
  inflating: WEB-INF/web.xml         
  inflating: META-INF/maven/io.jpress/jpress-web/pom.xml  
  inflating: META-INF/maven/io.jpress/jpress-web/pom.properties  
[root@tomcat1 ROOT]# ls
index.jsp  jpress-web-newest.war  META-INF  robots.txt  static  templates  WEB-INF




2.tomcat多实例安装 比如 8080 8081 8082 发布3个论坛项目 war包也给你了
#步骤

使用场景:节约服务器资源  java包 


环境:虚拟机
ip:10.0.1.130






#tips:前置准备
1.上传jdk源码 解压源码

cd /data


tar zxvf  jdk-8u161-linux-x64.tar.gz

mv jdk1.8.0_161/ jdk1.8


2.添加环境变量
vi /etc/profile

  在末尾加入如下代码
JAVA_HOME=/data/jdk1.8  
JRE_HOME=/data/jdk1.8  
PATH=$JAVA_HOME/bin:$PATH  
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar  
export JAVA_HOME  
export PATH  
export CLASSPATH


3.生效环境变量-检查是否安装成功 
source /etc/profile

java  -version



4.上传tamcat源码-解压源码
cd /data
rz
tar zxvf apache-tomcat-8.5.43.tar.gz
mv apache-tomcat-8.5.43 tomcat


5.启动tomcat

cd /data/tomcat/bin

./startup.sh


6.发布war包(一般是都是开发会给你包的,你直接解压到发布目录就可以了)

cd /data/tomcat/webapps/ROOT

rz

unzip jpress-web-newest.war 


7.查看测试页面
10.0.1.130:8080











1.复制多个tomcat包(假设之前你已经安装好了一个tomcat)
cd /data
cp -r tomcat tomcat2
cp -r tomcat tomcat3


2.修改tomcat2/3端口号(端口号不能冲突)
cd /data/tomcat2/conf
vi server.xml


第二台tomcat2
   22 <Server port="8006" shutdown="SHUTDOWN">
   69     <Connector port="8081" protocol="HTTP/1.1"
   75                port="8081" protocol="HTTP/1.1"
   116     <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />



第三台tomcat3
   22 <Server port="8007" shutdown="SHUTDOWN">
   69     <Connector port="8082" protocol="HTTP/1.1"
   75                port="8082" protocol="HTTP/1.1"
   116     <Connector port="8011" protocol="AJP/1.3" redirectPort="8443" />



3.启动tomcat2/3 
cd /data/tomcat2/bin
./startup.sh

cd /data/tomcat3/bin
./startup.sh



4.安装数据库mysql


yum方式
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
 yum -y install mysql-community-server



systemctl start mysql
systemctl status mysql     看一下状态
systemctl start mysql.service  设置自启动

ss -tulpn |grep mysql

数据库接口 3306


为root账户设置数据库密码
[root@node-1 ~]#mysql_secure_installation  #初始化MySQL
Enter current password for root (enter for none):   <---输入现在的root密码,因为我们还没设置,直接回车
Set root password? [Y/n] Y                                    <---是否设定root密码,当然设置了,输入Y回车
New password:                                                      <---输入root密码,并回车,输入的过程中不会有任何显示
Re-enter new password:                                        <---再次输入root密码,并回车,输入的过程中不会有任何显示
Remove anonymous users? [Y/n] Y                      <---是否删除匿名用户,删除,输入Y回车
Disallow root login remotely? [Y/n] Y                     <---是否删禁止root用户远程登录,当然禁止,输入Y回车
Remove test database and access to it? [Y/n]      <---是否删除测试数据库test,看个人喜好
Reload privilege tables now? [Y/n] Y                    <---刷新权限,输入Y回车
最后出现:Thanks for using MySQL!
MySql密码设置完成,重新启动 MySQL:


tips:数据库密码一般设置就比较复杂的,在生产环境中,不过这里就不设置复杂的了,直接123


mysql -uroot -p"123"     #创建一个root账户的数据库密码
create database  wordpress;    #新建一个数据库
show databases;    #查看一下是否存在

grant all on *.* to dz@"%" identified by "123456";


mysql_secure_installation  #初始化MySQL
mysql -uroot -p"123"
create database jpress DEFAULT CHARACTER SET utf8;
create database jpress1;
create database jpress2;
create database jpress3;
grant all on jpress.* to jpress@"%" identified by "123456";
flush privileges;  #刷新一下数据库




tomcat1
create database jpress1 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress1
新建数据库账号:dz
新建数据库密码:123456
mysql -udz -p123456 -h 10.0.1.148


tomcat2
create database jpress2 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress2
新建数据库账号:dz
新建数据库密码:123456



tomcat3
create database jpress3 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress3
新建数据库账号:dz
新建数据库密码:123456








5.测试
http://10.0.1.130:8080/install/step2

http://10.0.1.130:8081/install/step2

http://10.0.1.130:8082/install/step2



6.重启tomcat

停止
/data/tomcat/bin/shutdown.sh 
/data/tomcat2/bin/shutdown.sh 
/data/tomcat3/bin/shutdown.sh 

启动
/data/tomcat/bin/startup.sh
/data/tomcat2/bin/startup.sh
/data/tomcat3/bin/startup.sh 





如下图
数据库配置

img

博客1

img

博客2

img

博客3

img

3 工作任务:上面8080端口打开网站不安全 ,如果做到隐藏内网服务器,减少攻击 ,
就是用nginx 做反向代理实现 也是面试问道题目


#步骤


环境:

nginx:10.0.1.139

tomcat1:10.0.1.130
tomcat2:10.0.1.135
tomcat3:10.0.1.140



负载均衡配置模板
upstream tomcat {
       server 10.0.1.139:8080;
       server 10.0.1.130:8080;
    }
     
    server {
        listen       80;
        server_name  www.yunwei.com;
        location / {
           proxy_pass http://tomcat;
           proxy_set_header Host $host;
           proxy_set_header X-Forwarded-For $remote_addr;
           proxy_next_upstream error timeout http_404 http_502 http_403;
        }


}





环境:

nginx:10.0.1.139

tomcat1:10.0.1.130
tomcat2:10.0.1.135
tomcat3:10.0.1.140







1.配置主nginx
cd /usr/local/nginx/conf
mkdir vhost
vi nginx.conf
#tips:这是nginx主配置文件,生产环境中可能nginx上,不止一个网站,主配置文件里面一个网站,在创建一个子配置文件,不过这里需要再主配置文件里面引用子配置文件,不然不会生效的,注意这里的端口号,也不可以一样,如果主配置文件里,有一个网站,他的端口是80 ,那么新建的tomcat配置文件里,就不能与他冲突,必须错开



worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       81;
        server_name  www.it.com;
        location / {
            root   /html/www;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
include /usr/local/nginx/conf/vhost/*.conf; #主要添加的就是这里,这里如果你只有一个网站,不需要配置,如果你要配置多个tomcat的如负载均衡,就必须创建一个子配置文件夹,在文件夹里,创建配置文件,在主配置文件里,引用一下子配置文件

}

    


mkdir vhost
cd vhost/




2.添加负载均衡模块配置
cd vhost/
vi lvs.conf
upstream tomcat_backend {
    server 10.0.1.130:8080; # Tomcat服务器的IP地址和端口
    server 10.0.1.135:8080;
    server 10.0.1.140:8080;
}

server {
    listen 80; # Nginx监听的端口,可根据需求更改
    server_name yourdomain.com; # 替换为实际的域名或使用localhost进行本地测试

    location / {
        proxy_pass http://tomcat_backend; # 请求将被转发至Tomcat服务器
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 300s;
        proxy_connect_timeout 300s;
    }
}





3.写入测试页面内容(nginx+tomcat)

tomcat1

cd /data/tomcat1/webapps/ROOT
 rm -rf *
echo 1 > index.jsp

tomcat2
cd /data/tomcat1/webapps/ROOT
 rm -rf *
echo 2 > index.jsp

tomcat3
cd /data/tomcat1/webapps/ROOT
 rm -rf *
echo 3 > index.jsp


#tips:这里你有多少tomcat实例,就要写入多个tomcat的内容,来进行测试


4.测试
http://10.0.1.139/
#tips :如果页面打开时,跳转内容是1 2 1 2  代表成功












4 实战演示 :结果打开www.it.com 自动打开上面的java网站 使用nginx 均衡 3台tomcat 实现 打开论坛
题目解释:这个需求就是要通过Nginx实现一个高可用的负载均衡系统,将用户的请求均衡地分发给后端的3台Tomcat服务器,每台Tomcat服务器上运行着相同的Java论坛网站,用户通过访问www.it.com这个域名,可以访问到这个论坛网站。


#步骤


环境:

nginx:10.0.1.141

tomcat1:10.0.1.142
tomcat2:10.0.1.143
tomcat3: 10.0.1.145
mysql: 10.0.1.148




0.准备工作(这是克隆机器后需要做的一些操作,这里你可以不做)
cd /etc/sysconfig/network-scripts/
 mv ifcfg-eno16777736 ifcfg-eth0

vi ifcfg-eth0

TYPE="Ethernet"
BOOTPROTO="static"
NAME="eth0"
UUID="3c444054-987d-460b-9d8a-19e884f6bd3b"
DEVICE="eth0"
IPADDR=10.0.1.148
GATEWAY=10.0.1.2
PREFIX=255.255.255.0
DNS=8.8.8.8
DNS2=114.114.114.114
ONBOOT="yes"

systemctl restart network




第一模块:安装tomcat 1 2 3 并安装博客


1.上传jdk源码 解压源码

cd /data


tar zxvf  jdk-8u161-linux-x64.tar.gz

mv jdk1.8.0_161/ jdk1.8


2.添加环境变量
vi /etc/profile

  在末尾加入如下代码
JAVA_HOME=/data/jdk1.8  
JRE_HOME=/data/jdk1.8  
PATH=$JAVA_HOME/bin:$PATH  
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar  
export JAVA_HOME  
export PATH  
export CLASSPATH


3.生效环境变量-检查是否安装成功 
source /etc/profile

java  -version



4.上传tamcat源码-解压源码
cd /data
rz
tar zxvf apache-tomcat-8.5.43.tar.gz
mv apache-tomcat-8.5.43 tomcat


5.启动tomcat

cd /data/tomcat/bin

./startup.sh


6.发布war包(一般是都是开发会给你包的,你直接解压到发布目录就可以了)

cd /data/tomcat/webapps/ROOT

rz

unzip jpress-web-newest.war 


7.查看测试页面
10.0.1.142:8080
10.0.1.143:8080
10.0.1.145:8080












8.复制多个tomcat包(假设之前你已经安装好了一个tomcat)
cd /data
cp -r tomcat tomcat2
cp -r tomcat tomcat3


9.修改tomcat2/3端口号(端口号不能冲突)
cd /data/tomcat2/conf
vi server.xml


第二台tomcat2
   22 <Server port="8006" shutdown="SHUTDOWN">
   69     <Connector port="8081" protocol="HTTP/1.1"
   75                port="8081" protocol="HTTP/1.1"
   116     <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" />



第三台tomcat3
   22 <Server port="8007" shutdown="SHUTDOWN">
   69     <Connector port="8082" protocol="HTTP/1.1"
   75                port="8082" protocol="HTTP/1.1"
   116     <Connector port="8011" protocol="AJP/1.3" redirectPort="8443" />




#tips:这里我们虽然可以改三台不同的端口,但是端口,我们这里是用三台tomcat机器,所以无所谓端口,但是实际环境中,可能一个机器上,要装多个tomcat实例,这个时候,端口就必须要更改一下,否则会冲突



10.启动tomcat2/3 
cd /data/tomcat2/bin
./startup.sh

cd /data/tomcat3/bin
./startup.sh









11.安装数据库mysql(三个tomcat都要安装数据库)
tomcat1:10.0.1.142
tomcat2:10.0.1.143
tomcat3:10.0.1.145


yum方式
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
 yum -y install mysql-community-server



systemctl start mysql
systemctl status mysql     看一下状态
systemctl start mysql.service  设置自启动

ss -tulpn |grep mysql

数据库接口 3306


为root账户设置数据库密码
[root@node-1 ~]#mysql_secure_installation  #初始化MySQL
Enter current password for root (enter for none):   <---输入现在的root密码,因为我们还没设置,直接回车
Set root password? [Y/n] Y                                    <---是否设定root密码,当然设置了,输入Y回车
New password:                                                      <---输入root密码,并回车,输入的过程中不会有任何显示
Re-enter new password:                                        <---再次输入root密码,并回车,输入的过程中不会有任何显示
Remove anonymous users? [Y/n] Y                      <---是否删除匿名用户,删除,输入Y回车
Disallow root login remotely? [Y/n] Y                     <---是否删禁止root用户远程登录,当然禁止,输入Y回车
Remove test database and access to it? [Y/n]      <---是否删除测试数据库test,看个人喜好
Reload privilege tables now? [Y/n] Y                    <---刷新权限,输入Y回车
最后出现:Thanks for using MySQL!
MySql密码设置完成,重新启动 MySQL:


#tips:数据库密码一般设置就比较复杂的,在生产环境中,不过这里就不设置复杂的了,直接123


mysql -uroot -p"123"     #创建一个root账户的数据库密码
create database  wordpress;    #新建一个数据库
show databases;    #查看一下是否存在

grant all on *.* to dz@"%" identified by "123456";

mysql_secure_installation  #初始化MySQL
mysql -uroot -p"123"
create database jpress DEFAULT CHARACTER SET utf8;
create database jpress1;
create database jpress2;
create database jpress3;
grant all on jpress.* to jpress@"%" identified by "123456";
flush privileges;  #刷新一下数据库
#以上是数据库常用选项,可省略







tomcat1
create database jpress1 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress1
新建数据库账号:dz
新建数据库密码:123456
测试是否创建成功:mysql -udz -p123456


tomcat2
create database jpress2 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress2
新建数据库账号:dz
新建数据库密码:123456
测试是否创建成功:mysql -udz -p123456


tomcat3
create database jpress3 DEFAULT CHARACTER SET utf8;
grant all on *.* to dz@"%" identified by "123456";
数据库名:jpress3
新建数据库账号:dz
新建数据库密码:123456
测试是否创建成功:mysql -udz -p123456





第二模块:配置mysql服务器



1.安装mysql并创建账号密码 数据库表名
yum方式
wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
 yum -y install mysql-community-server



systemctl start mysql
systemctl status mysql     看一下状态
systemctl start mysql.service  设置自启动

ss -tulpn |grep mysql

数据库接口 3306


为root账户设置数据库密码
[root@node-1 ~]#mysql_secure_installation  #初始化MySQL
Enter current password for root (enter for none):   <---输入现在的root密码,因为我们还没设置,直接回车
Set root password? [Y/n] Y                                    <---是否设定root密码,当然设置了,输入Y回车
New password:                                                      <---输入root密码,并回车,输入的过程中不会有任何显示
Re-enter new password:                                        <---再次输入root密码,并回车,输入的过程中不会有任何显示
Remove anonymous users? [Y/n] Y                      <---是否删除匿名用户,删除,输入Y回车
Disallow root login remotely? [Y/n] Y                     <---是否删禁止root用户远程登录,当然禁止,输入Y回车
Remove test database and access to it? [Y/n]      <---是否删除测试数据库test,看个人喜好
Reload privilege tables now? [Y/n] Y                    <---刷新权限,输入Y回车
最后出现:Thanks for using MySQL!
MySql密码设置完成,重新启动 MySQL:


#tips:数据库密码一般设置就比较复杂的,在生产环境中,不过这里就不设置复杂的了,直接123


mysql -uroot -p"123"     #创建一个root账户的数据库密码
create database  wordpress;    #新建一个数据库
show databases;    #查看一下是否存在

grant all on *.* to dz@"%" identified by "123456";

mysql_secure_installation  #初始化MySQL
mysql -uroot -p"123"
create database jpress DEFAULT CHARACTER SET utf8;
create database jpress1;
create database jpress2;
create database jpress3;
grant all on jpress.* to jpress@"%" identified by "123456";
flush privileges;  #刷新一下数据库
#以上是数据库常用选项,可省略






mysql_secure_installation  
mysql -uroot -p"123"
create database jpress DEFAULT CHARACTER SET utf8;
grant all on *.* to jpress@"%" identified by "123456"; 
数据库名:jpress
新建数据库账号:jpress
新建数据库密码:123456
测试是否创建成功:mysql -ujpress -p123456 -h 10.0.1.142
mysql -ujpress -p123456 -h 10.0.1.143
mysql -ujpress -p123456 -h 10.0.1.145






第三模块  备份tomcat博客数据库

tomcat1:(此时你可以在tomcat1这个博客上写点东西,方便测试)

mysqldump -uroot -p"123" -B -A >/home/d.sql 

scp /home/d.sql root@10.0.1.148:/home #推送到msyql服务器上





第四模块 还原tomcat1博客数据库


mysql -uroot -p"123"

use jpress;
source /home/d.sql;











第五模块   修改tomcat1 2 3 博客数据库配置文件

#tips:我用的是jpress这个博客cms,他的数据库配置文件有两个 db-simple.properties  和  db.properties 



1.修改博客数据库配置文件
cd /data/tomcat1/webapps/ROOT/WEB-INF/classes


vim db.properties

#Auto create by JPress
#Sun Mar 31 21:56:40 CST 2024
db_name=jpress
db_host_port=3306
db_tablePrefix=jpress_
db_host=10.0.1.148
db_password=123456
db_user=jpress

 



vim db-simple.properties

db_host = 10.0.1.148
db_host_port = 3306
db_name = jpress
db_user = jpress
db_password =123456
db_tablePrefix =  


三个tomcat1 2  3  都要改的


#tips:以上的数据库账号 密码 和数据库表名是mysql服务器的,不要搞错了,我们在第二模块创建的     数据库名:jpress   新建数据库账号:jpress   新建数据库密码:123456 






2.重启
tomcat1:
cd /data/tomcat1/bin/
 ./shutdown.sh 
 ./startup.sh 

tomcat2:
cd /data/tomcat2/bin/
 ./shutdown.sh 
 ./startup.sh 

tomcat3:
cd /data/tomcat3/bin/
 ./shutdown.sh 
 ./startup.sh 






#tips:停止tomcat-再启动(更新一下配置-这里我们是tomcat所以需要重启他,如果是php的话,需要重启一下php,或者其他的运行环境)












第六模块 配置负载均衡 nginx
10.0.1.141



1.配置主nginx
cd /usr/local/nginx/conf
mkdir vhost
vi nginx.conf
#tips:这是nginx主配置文件,生产环境中可能nginx上,不止一个网站,主配置文件里面一个网站,在创建一个子配置文件,不过这里需要再主配置文件里面引用子配置文件,不然不会生效的,注意这里的端口号,也不可以一样,如果主配置文件里,有一个网站,他的端口是80 ,那么新建的tomcat配置文件里,就不能与他冲突,必须错开



worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen       81;
        server_name  www.it.com;
        location / {
            root   /html/www;
            index  index.html index.htm;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
include /usr/local/nginx/conf/vhost/*.conf; #主要添加的就是这里,这里如果你只有一个网站,不需要配置,如果你要配置多个tomcat的如负载均衡,就必须创建一个子配置文件夹,在文件夹里,创建配置文件,在主配置文件里,引用一下子配置文件

}

    


mkdir vhost
cd vhost/




2.添加负载均衡模块配置
cd vhost/
vi lvs.conf
upstream tomcat_backend {
    server 10.0.1.142:8080; # Tomcat服务器的IP地址和端口
    server 10.0.1.143:8080;
    server 10.0.1.145:8080;   #tips:这里我们虽然可以改三台不同的端口,但是端口,我们这里是用三台tomcat机器,所以无所谓端口,但是实际环境中,可能一个机器上,要装多个tomcat实例,这个时候,端口就必须要更改一下,否则会冲突
}

server {
    listen 80; # Nginx监听的端口,可根据需求更改
    server_name www.it.com; # 替换为实际的域名或使用localhost进行本地测试

    location / {
        proxy_pass http://tomcat_backend; # 请求将被转发至Tomcat服务器
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_read_timeout 300s;
        proxy_connect_timeout 300s;
    }
}


nginx -t
nginx -s reload





3.测试
http://10.0.1.141/:8080
#tips :如果页面打开时,跳转内容是tomcat1 2 3 的博客内容,这里就代表成功,负载均衡和反向代理














原理效果:

nginx--------------------负责负载均衡和反向代理
 tomcat1-------------
 tomcat2-------------
 tomcat3-------------替主服务器分担访问压力和故障转移

msyql---------------存储三个tomcat的数据库文件(账号,信息之类的)










数据库配置

img

10.0.1.141(nginx)

img

10.0.1.142(tomcat1)

img

10.0.1.143(tomcat2)

img

10.0.1.145(tomcat3)

img

故障实例解决
#可能故障:

1.数据库账号密码--要与mysql服务器账号密码表名一样
2.防火墙一定要关-----systemctl stop firewalld
3.tomcat配置未生效?--------/data/tomcat/bin/shutdown.sh (停止) /data/tomcat/bin/startup.sh   (启动)
4.nginx负载均衡-反向代理--一定要搞清楚---1.端口号 --2.配置文件  
5.nginx负载均衡-反向代理----配置好每一步,要用nginx -t 检查一下语法是否错误?





#故障解决:

如果在配置过程中,你发现无法搞定,三台tomcat,有一台出现问题了,仔细查找不出原因,这是,一定要确定有一台好的tomcat , 比如tomcat1 此时你已经配置好数据库也部署过博客了,直接全tomcat1对拷其他tomcat机器,在重新启动就可以了,

5 实战演示 : 修改tomcat默认发布目录
#步骤

#步骤

测试环境:虚拟机
tomcat:10.0.1.145





1.上传jdk源码 解压源码

cd /data


tar zxvf  jdk-8u161-linux-x64.tar.gz

mv jdk1.8.0_161/ jdk1.8


2.添加环境变量
vi /etc/profile

  在末尾加入如下代码
JAVA_HOME=/data/jdk1.8  
JRE_HOME=/data/jdk1.8  
PATH=$JAVA_HOME/bin:$PATH  
CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar  
export JAVA_HOME  
export PATH  
export CLASSPATH


3.生效环境变量-检查是否安装成功 
source /etc/profile

java  -version



4.上传tamcat源码-解压源码
cd /data
rz
tar zxvf apache-tomcat-8.5.43.tar.gz
mv apache-tomcat-8.5.43 tomcat


5.启动tomcat

cd /data/tomcat/bin

./startup.sh


6.发布war包(一般是都是开发会给你包的,你直接解压到发布目录就可以了)

cd /data/tomcat/webapps/ROOT

rz

unzip jpress-web-newest.war 


7.查看测试页面
http://10.0.1.145:8080/





8.修改默认发布目录(tomcat)-指定发布目录

cd /data/tomcat/conf
vim server.xml


修改前
148       <Host name="localhost"  appBase="webapps"
149             unpackWARs="true" autoDeploy="true">


修改后

148       <Host name="localhost"  appBase="/html/tomcat"
149             unpackWARs="true" autoDeploy="true">



新发布目录:/html/tomcat



8.新建发布目录


mkdir -p /html/tomcat


/data/tomcat/bin/./shutdown.sh     停止
/data/tomcat/bin/startup.sh        启动




9.迁移tomcat---webapps

cd /data/tomcat/webapps

mv docs examples host-manager manager ROOT /html/tomcat/







10.测试

http://10.0.1.145:8080/




#tips:这个tomcat的webapps下的文件都是显示前端的配置文件,所以,你在新目录下,创建一个文件,可能会有问题,所以需要把对应的webapps包整个拷贝过来,再根据自己的需求修改




修改发布目录后

img

简历用的项目
项目名称:Nginx+Keepalived集群环境搭建
项目描述:由于公司业务量增加,并发访问量的增多,存在单节点故障、响应延迟等突出问题,公司决定调度层采用Nginx+Keepalived环境来实现主、从调度器的热备切换,达到负载均衡和高可用性。服务器池采用Nginx+Tomcat架构,实现动静网页解析分离,最终来满足公司业务需求。确保公司网站应用服务的稳定性与高可用性。
项目职责:
1.负责Nginx+keepalived集群环境的构建
2.负责服务器池Nginx+Tomcat各节点部署

posted @ 2024-04-01 18:03  三思博客  阅读(16)  评论(0编辑  收藏  举报