Board logo

标题: [求助] 怎么定时重起MYSQL和AP [打印本页]

作者: 我行我素    时间: 2012-1-5 19:49     标题: 怎么定时重起MYSQL和AP

我用crontab 没反映,

  1. [root@1 opt]# crontab -l
  2. no crontab for root
复制代码


提示是这个
作者: admin    时间: 2012-1-6 09:32

http://www.wdlinux.cn/bbs/thread-1004-1-1.html
作者: 我行我素    时间: 2012-1-6 10:55

搞定,不是用上面的办法,是用VIM编写的。原来是没加任务导致了错误
作者: 我行我素    时间: 2012-1-20 14:32

* */72 * * * /etc/rc.d/init.d/httpd restart  (每隔72小时重启一次apache)
* */72 * * * /etc/rc.d/init.d/mysqld restart  (每隔72小时重启一次mysql)
* */100 * * * /etc/rc.d/init.d/wdapache restart (每隔100小时重启一次wdcp)

格式对不对?




欢迎光临 WDlinux官方论坛 (http://wdlinux.cn/bbs/) Powered by Discuz! 7.2