Linux crontab sample vs. quartz cron expression

[root@crm-web-1 tomcat]# crontab -e
crontab: installing new crontab
[root@crm-web-1 tomcat]# crontab -l

每天5点6分一次重启tomcat_crm_main

6 5 * * * (sh /usr/local/tomcat/crm_main_restart.sh; echo "【date】restart_tomcat_crm_main">>/usr/local/tomcat/crm_main_restart.log)
[root@crm-web-1 tomcat]# cat /usr/local/tomcat/crm_main_restart.sh
ps -ef | grep java

kill tomcat instance: kill -3 vs kill -15 vs kill -9

ps -ef | grep app_crm/ | awk ‘{print $2}‘ | xargs kill -9
ps -ef | grep java
sh /usr/local/tomcat/app_crm/startup_crm_8080.sh
sh /usr/local/tomcat/app_crm/startup_crm_9080.sh

/tmp/crontab.sdXvj4:5: bad minute errors in crontab file, cant install. Do you want to retry..._似水流年-CSDN博客
https://blog.csdn.net/xiaoshunzi111/article/details/50432793

errors in crontab file,cant install_张伟的专栏-CSDN博客
https://blog.csdn.net/javastart/article/details/50495089

quartz cron expression

https://cron.qqe2.com/

Linux crontab sample vs. quartz cron expression

上一篇:chromium windows10 vs2019 编译


下一篇:Linux网卡以及防火墙配置方法