linuxtomcat 一 键 维护

  
 < span style = " familia de fuentes: Arial, Helvetica, sans-serif; " > #! /bin/sh</span>
a="/usr/share/tomcat7/webapps/ROOT"b="/usr/share/tomcat7/webapps/ROOT.war"c="ROOT.war" tomcat_stop = " /usr/share/tomcat7/bin/shutdown.sh" sh " $ tomcat_stop " ps aufx |
  grep tomcat |
  raíz grep |
  awk '{print $ 2}' |
  xargs kill -9rm -rf /usr/share/tomcat7/logs/catalina.outif [-d " $ a " ]; luego rm -r " $ a " fiif [-f " $ b " ]; luego rm " $ b " fiif [-f " $ c " ]; entonces cp " $ c " " $ b " fid = " /usr/share/tomcat7/bin/startup.sh" sh " $ d " sleep 10chmod + x work.shen"],null,[0.95449454],en"]]]
						
Copyright © Conocimiento de Windows All Rights Reserved