tomcat脚本】的更多相关文章

自动部署tomcat 脚本 . /etc/init.d/functions #调用系统函数 yum -y install java >/dev/null TAR="apache-tomcat-9.0.0.M26" URL="http://mirror.bit.edu.cn/apache/tomcat/tomcat-9/v9.0.0.M26/bin/${TAR}.tar.gz" DST="/usr/local/tomcat_test" cd…
#!/bin/sh # func:自动监控tomcat脚本并且执行重启操作 # author:reed # date:// # 定义环境变量 MYPATH=/usr/local/jdk/bin export JAVA_HOME=/usr/local/jdk export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar export MYPATH=$MYPATH:$JAVA_HOME/bin # DEFINE # 获取tomcat进程ID Tom…
参考:https://www.cnblogs.com/fps2tao/p/8488596.html 1.编写tomcat脚本 在/etc/init.d/目录下创建tomcat服务脚本文件 cd  /etc/init.d nano tomcat 复制粘贴以下内容 #!/bin/bash # # tomcat startup script for the Tomcat server # # # chkconfig: 345 80 20 # description: start the tomcat…
部署包路径:/usr/local/tomcat/webapps 应用服务启动脚本路径:/usr/local/tomcat/bin/restart.sh 部署授权帐号:tomcat restart.sh放在tomcat的bin目录下: #!/bin/sh export JAVA_HOME=/usr/local/jdk/jdk1.8.0_111 echo "JAVA_HOME PATH $JAVA_HOME" sh /usr/local/tomcat/bin/catalina.sh sto…
0.个人标记 caicongyang http://blog.csdn.net/caicongyang 1.脚本retomcat.sh #!/bin/sh pid=`ps aux |grep tomcat |grep -v grep |grep -v retomcat | awk '{print $2}'` echo $pid if [ -n "$pid" ] then { echo =====kill tomcat ========== kill -9 $pid sleep 3 ec…
#!/usr/bin/env python# _*_ coding:UTF-8 _*_import commandsimport time,os,sysfrom download_bag import downloadbag tomcat_home = '/usr/local/apache-tomcat-7.0.42/'webapp_name = 'front'update_dir = "/home/deployer/update/"backup_home = '/home/deplo…
我们都知道,使用ssh在另一台机子执行一个ssh文件的语句是酱紫的 ssh root@1.9.7.56 "chmod 777 /opt/script/tomcatStop.sh ; sh /opt/script/tomcatStop.sh" 好的,然后就出问题咯....找不到环境变量 于是乎找原因,发现是被控制的tomcat没有配置到环境变量. 那么的话,就给tomcat配置上环境变量好了 进入tomcat的bin目录下 vi setclasspath.sh 然后把环境变量配置过去即可…
#!/bin/test_restart.sh #Author : Javen #Desc : restart tomcat-test tomcatpath="/home/local/testJaven/tomcat-test" tomcatname="tomcat-test" ]; then ps -ef | grep java | grep ${tomcatpath}; pid=$(ps -ef | grep java | grep ${tomcatpath} |…
#!/bin/sh # author hapday -- export TOMCAT_HOME=/usr/local/tomcat-pms tomcat_pid=$(ps -ef | grep ${TOMCAT_HOME} | grep -v grep | awk '{print $2}') echo "--------------------" echo "tomcat pid =" ${tomcat_pid} echo "---------------…
#[root@node1 ~]# vim /etc/init.d/tomcat #!/bin/bash # Init file for Tomcat server daemon # # chkconfig: # description: Tomcat server daemon JAVA_OPTS='-Xms64m -Xmx128m' JAVA_HOME=/usr/java/jdk1..0_11 CATALINA_HOME=/usr/local/tomcat export JAVA_OPTS J…