Linux 定時crontab 重啓tomcat(殺掉進程後啓動)方法

大體環境是這樣的java 在目錄/opt/rfid下有一個tomcat文件夾,叫作apache-tomcat-7.0.42,如今須要天天定時重啓tomcat。apache 1、 使用touch 命令建立sh腳本tomcat 1.新建restart-cs.sh文件rest touch restart-cs.sh 2.編輯腳本內容  vi restart-cs.shcode #! /bin/sh ps
相關文章
相關標籤/搜索