部署过程记录:

把cloud2.0.war  haier.war 这两个war包Sftp上传到服务器:

cloud2.0.war  haier.war

把这个这两个文件放到/opt/tomcat/webapps下面

然后运行一下/opt/tomat/bin 的shutdown.sh 之后startup.sh

重启tomcat:

root@haierdemo:~# ls /opt/tomcat/webapps

cloud2.0  HAIER

root@haierdemo:~# cp HAIER-UI.war /opt/tomcat/webapps/

root@haierdemo:~# cp cloud2.0.war /opt/tomcat/webapps/

root@haierdemo:~# ls /opt/tomcat/webapps/

cloud2.0  cloud2.0.war  HAIER  HAIER-UI  HAIER-UI.war

root@haierdemo:~# /opt/tomcat/bin/shutdown.sh

Using CATALINA_BASE:   /opt/tomcat

Using CATALINA_HOME:   /opt/tomcat

Using CATALINA_TMPDIR: /opt/tomcat/temp

Using JRE_HOME:        /opt/jdk1.7.0_25/jre

Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar

root@haierdemo:~# /opt/tomcat/bin/startup.sh

Using CATALINA_BASE:   /opt/tomcat

Using CATALINA_HOME:   /opt/tomcat

Using CATALINA_TMPDIR: /opt/tomcat/temp

Using JRE_HOME:        /opt/jdk1.7.0_25/jre

Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar

Tomcat started.

root@haierdemo:~# ls /opt/tomcat/webapps/

cloud2.0  cloud2.0.war  HAIER  HAIER-UI  HAIER-UI.war

root@haierdemo:~#