tomcat 启动和关闭脚本】的更多相关文章

start.sh #!/bin/sh . ~/.bash_profile echo "" > ${TOMCAT_HOME}/logs/catalina.out; sh ${TOMCAT_HOME}/bin/startup.sh tail -f ${TOMCAT_HOME}/logs/catalina.out stop.sh #!/bin/sh #set -x . ~/.bash_profile sh ${TOMCAT_HOME}/bin/shutdown.sh proc_coun…
DB: 5.5.14 OS:CentOS 6.3 在MySQL多实例中,一个一个启动灰常麻烦,因此写个简单的启动和关闭脚本 启动脚本:start.sh #!/bin/bash for port in {3390..3396} do (/export/servers/mysql/bin/mysqld_safe --defaults-file=/export/servers/mysql/etc/my$port.cnf  ) & done 关闭脚本:stop.sh #!/bin/bash for po…
#!/bin/bash JDK_HOME=/apps/jdk1.7.0_79 CATALINA_HOME=/apps/tomcat export JDK_HOME CATALINA_HOME source /etc/profile #PID=`ps -ef | grep -v grep | grep java | awk '{print $2}'` #NUM=`ps -ef | grep -v grep | grep java | awk '{print $2}' | wc -l` #case…
在 Servlet API 中有一个 ServletContextListener 接口,它能够监听 ServletContext 对象的生命周期,实际上就是监听 Web 应用的生命周期. 当Servlet 容器启动或终止Web 应用时,会触发ServletContextEvent 事件,该事件由ServletContextListener 来处理.在 ServletContextListener 接口中定义了处理ServletContextEvent 事件的两个方法. java代码 1 /**…
1.启动 在tomcat安装目录的bin文件中双击startup.bat. 2.关闭 在tomcat安装目录的bin文件中双击shutdown.bat. 3.配置tomcat-user.xml文件 (conf文件夹中) <tomcat-users> <role rolename="manager-gui"/> <role rolename="manager" /> <role rolename="manager-s…
1. zabbix客户端的系统服务脚本 1.1 拷贝启动脚本 zabbix的源码提供了系统服务脚本,在/usr/local/src/zabbix-3.2.6/misc/init.d目录下,我的系统是CentOS的,所以选择fedora下的脚本复制到/etc/init.d下 [root@lanmp core5]# pwd /usr/local/src/zabbix-3.2.6/misc/init.d/fedora/core5 [root@lanmp core5]# cp -a zabbix_age…
创建startall.sh /usr/local/redis/bin/redis-server /usr/local/redis/redis-cluster/7001/redis.conf /usr/local/redis/bin/redis-server /usr/local/redis/redis-cluster/7002/redis.conf /usr/local/redis/bin/redis-server /usr/local/redis/redis-cluster/7003/redi…
#!/bin/bash PORT= NAME=redis-server ID=`ps -ef | grep "$NAME" | grep -v "grep" | awk '{print $2}'` #CHECK_PORT=`netstat -tnlp|grep "\b$PORT\b"` REDIS_SERVER=/usr/local/redis/bin/redis-server REDIS_CONFIG=/usr/local/redis/etc/…
Create the following files to start and stop R12. application tier. Change the apps and weblogic passwords appropriately. start_R12.sh ============ /d01/oracle/VIS/fs1/inst/apps/VIS_erptest/admin/scripts/adstrtal.sh apps/apps <<EOF weblogic1 EOF ———…
[脚本3]tomcat启动脚本 一.脚本tomcatd.sh #!/bin/bash # chkconfig:2345 64 36 # description: Tomcat start/stop/restart script. ### BEGIN INIT INFO # Provides: tomcat # Required-Start: # Should-Start: # Required-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1…