When doing a Java website project, if you encounter a problem that the Tomcat server dies every few days, then temporarily restart the Tomcat to solve the problem temporarily. The following small series will bring you the scheduled restart of the Tomcat service in the Linux operating system. The way, let's learn together.
The Linux operating system periodically restarts the Tomcat service as follows:
1. Write tomcat_shutdown.sh:
#! /bin/sh
export JAVA_HOME=/home/oracle/jdk1.7.0_67/
export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar< Br>
export PATH=$JAVA_HOME/bin:$PATH
echo “========begin stop the tomcat========”
& lsquo; /home/oracle/apache-tomcat-7.0.29/bin/shutdown.sh’
2, write tomcat_startup.sh:
#! /bin/sh
export JAVA_HOME=/home/oracle/jdk1.7.0_67/
export CLASSPATH=$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar< Br>
export PATH=$JAVA_HOME/bin:$PATH
echo “========begin start the tomcat========”
& lsquo; /home/oracle/apache-tomcat-7.0.29/bin/startup.sh’
3, the linux system terminal, enter the command & ldquo; crontab -e & rdquo;: < Br> Previous12Next Total 2 Pages
Autofs is an automount tool for mounting file systems. When you start Linux system, Autofs will also
Linux system The full name of Go language is golang, which is a programming development language. Th
Krita is a bit of graphics editing software, including a painting program and photo editor, can hand
Most users now use Windows systems. They all know that Windows systems are divided
CentOS open Eclipse error Failed to load the JNI shared how to solve?
How to install and set GlusterFS on CentOS 6.4
Ubuntu method to install JDK environment variables Ubuntu configuration JDK steps
What are the common commands for Linux rookie?
How to configure the network for Kali Linux?
How Linux limits user login failures through PAM
Basic knowledge of cgroups in Linux
Linux system expect command operation example
Linux how to use ControlPersist to speed up SSH connection speed
Ubuntu configuration and use of MPI method
How to use the command to monitor the server under Linux
How to test the performance of a Linux disk using the DD command?
Disable win2008 key combination login method
Win7 search makes files appear quickly
Magic CMOS helps you easily operate CMOS content
Win10 latest preview version 10049 added Bio Enrollment application Not available
XP operating system abnormal troubleshooting method
Win8/8.1 view and delete wireless network configuration method