tomcat重启脚本
来源:互联网 发布:淘宝卖家说加微信返现 编辑:程序博客网 时间:2024/05/14 07:01
</pre>#!/bin/bash# Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements. See the NOTICE file distributed with# this work for additional information regarding copyright ownership.# The ASF licenses this file to You under the Apache License, Version 2.0# (the "License"); you may not use this file except in compliance with# the License. You may obtain a copy of the License at## http://www.apache.org/licenses/LICENSE-2.0## Unless required by applicable law or agreed to in writing, software# distributed under the License is distributed on an "AS IS" BASIS,# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.# See the License for the specific language governing permissions and# limitations under the License.# -----------------------------------------------------------------------------# Start Script for the CATALINA Server# -----------------------------------------------------------------------------# Better OS/400 detection: see Bugzilla 31132pid=`ps aux | grep tomcat | grep -v grep | grep -v retomcat | awk '{print $2}'` echo $pid if [ -n "$pid" ] then { echo ===========shutdown================ /home/lipeng/apache-tomcat-7.0.56/bin/shutdown.sh sleep 1 pid=`ps aux | grep tomcat | grep -v grep | grep -v retomcat | awk '{print $2}'` if [ -n "$pid" ] then { sleep 1 echo ========kill tomcat begin============== echo $pid kill -9 $pid echo ========kill tomcat end============== } fi sleep 1 echo ===========startup.sh============== set -m <span style="white-space:pre"></span>cd /home/lipeng/apache-tomcat-7.0.56/bin/<span style="white-space:pre"></span>./catalina.sh start<span style="white-space:pre"></span>cd /home/lipeng/apache-tomcat-7.0.56/logs/<span style="white-space:pre"></span>tail -f catalina.out# /home/lipeng/apache-tomcat-7.0.56/bin/startup.sh } else echo ===========startup.sh============== <span style="white-space:pre"></span> set -m <span style="white-space:pre"></span>cd /home/lipeng/apache-tomcat-7.0.56/bin/<span style="white-space:pre"></span>./catalina.sh start<span style="white-space:pre"></span>cd /home/lipeng/apache-tomcat-7.0.56/logs/<span style="white-space:pre"></span>tail -f catalina.out#/home/lipeng/apache-tomcat-7.0.56/bin/startup.sh fi<pre>
0 0
- tomcat重启脚本
- 重启tomcat脚本
- 重启Tomcat脚本
- tomcat重启脚本
- tomcat重启脚本
- tomcat重启脚本
- Tomcat重启脚本
- Tomcat 重启脚本linux
- shell脚本重启tomcat
- 关于tomcat重启脚本
- shell 脚本重启tomcat
- sh 脚本重启tomcat
- 改写tomcat重启脚本
- Tomcat自动重启脚本
- tomcat监控重启脚本
- shell 重启tomcat 脚本
- tomcat重启shell脚本
- shell 重启tomcat 脚本
- leetcode Implement strStr()
- 中科院计算所培训中心三季度公开课安排
- 天声人語 20150608
- [leetcode] Single Number
- 你之所以是小散 是因为还有这些错误投资理念
- tomcat重启脚本
- Eclipse中如何快速查看jar包中 的class源码
- 什么才算是真正的编程能力?
- live555 源代码简单分析1:主程序
- 九度OJ-题目1522:包含min函数的栈
- Next Permutation
- java 数据格式相互转换
- 事件分发,事件拦截,事件消费
- SQL Server 数据库迁移偏方