
Shell
宏伟杰作
厚积薄发,网罗天下。
展开
-
Tomcat重启Shell脚本
Web项目为了保障系统运行的稳定性,经常需要定时的进行重启,以下是经过长期运行比较简洁且又稳定的Shell脚本写法:vim restart_tomcat#!/bin/bash# Filename: restart_tomcat.sh# Description: Restart tomcat# Date: 2017-02-06# Author: songwj# Version: v...原创 2018-06-13 13:14:26 · 5017 阅读 · 0 评论 -
解决crontab执行时间与系统时间不一致的问题
本次RedHat版本为:Red Hat Enterprise Linux Server release 7.4 (Maipo)。 在crontab中添加了如下定时任务: 但是发现该任务实际执行的时间依次为16:00,17:00,18:00,19:00,比实际晚了8个小时,经查发现crontab所在时区为世界时: 解决办法:将世界时改为北京时即可。cp /usr/share...原创 2018-07-02 23:51:45 · 12491 阅读 · 1 评论