记录一个比较好的tomcat启动脚本,截取<OneinStack>,修改如下两个参数即可用. 使用之前修改下面2个参数: #Location of JAVA_HOME (bin files) export JAVA_HOME=/usr/java/jdk1.7.0_80 #jdk路径 #CATALINA_HOME is the location of the configuration files of this instance of Tomcat CATALINA_HOME=/usr/…
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses thi…
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses thi…
外部sh脚本如下 #!/bin/bash while read LINE do echo "Hello $LINE!" case $LINE in all) tail -f -n200 /smapp/servers/tomcat/apache-tomcat-/logs/catalina.out & ;; start) /bin/bash /smapp/servers/tomcat/apache-tomcat-/bin/startup.sh ;; stop) /bin/bash…
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses thi…