发布网友 发布时间:2022-05-01 21:03
共1个回答
热心网友 时间:2022-06-23 09:14
#!/bin/sh case "$1" in start) /usr/local/tomcat/tomcat6.1/bin/startup.sh /usr/local/tomcat/tomcat6.2/bin/startup.sh /usr/local/apache/bin/httpd -k start ;; stop) /usr/local/apache/bin/httpd -k stop /usr/local/tomcat/tomcat6.1/bin/shutdown.sh /usr/local/tomcat/tomcat6.2/bin/shutdown.sh ;; restart) $0 stop $0 start ;; *) echo "Usage: tomcatAll {start|stop|restart}" exit 1 ;; esac