systemctl stop tomcat_api \
&& cp -rf /usr/share/tomcat_api/webapps/uniapi.war /usr/share/tomcat_api/webapps/uniapi.war.`date +%m%d`bak \
&& rm -rf /usr/share/tomcat_api/webapss/uniapi \
&& cp -rf /root/uniapi.war /usr/share/tomcat_api/webapps/uniapi.war \
&& systemctl start tomcat_api
systemctl stop tomcat_manage \
&& cp -rf /usr/share/tomcat_manage/webapps/manage.war /usr/share/tomcat_manage/webapps/manage.war.`date +%m%d`bak \
&& rm -rf /usr/share/tomcat_manage/webapss/manage \
&& cp -rf /root/manage.war /usr/share/tomcat_manage/webapps/manage.war \
&& systemctl start tomcat_manage
/etc/init.d/tomcat_api stop \
&& cp -rf /opt/tomcat_api/webapps/uniapi.war /opt/tomcat_api/webapps/uniapi.war.`date +%m%d`bak \
&& rm -rf /opt/tomcat_api/webapps/uniapi \
&& cp -rf /home/jinelei/uniapi.war /opt/tomcat_api/webapps/uniapi.war \
&& /etc/init.d/tomcat_api start
/etc/init.d/tomcat_boss stop \
&& cp -rf /opt/tomcat_boss/webapps/manage.war /opt/tomcat_boss/webapps/manage.war.`date +%m%d`bak \
&& rm -rf /opt/tomcat_boss/webapps/manage \
&& cp -rf /home/jinelei/manage.war /opt/tomcat_boss/webapps/manage.war \
&& /etc/init.d/tomcat_boss start
网友评论