在面板里添加定时任务 执行shell语句就可以了:
apache命令
service httpd restart
或者
/etc/init.d/httpd restart
mysql命令
/etc/init.d/mysqld restart