-
Notifications
You must be signed in to change notification settings - Fork 49
服务器脚本
linkai edited this page Jul 18, 2018
·
1 revision
----- 请将源码放于目录 /var/www/charRoom ----
#每天凌晨 4点 重启各种服务器 5 4 * * * service php-fpm restart >/dev/null 2>&1 &
10 4 * * * service nginx restart >/dev/null 2>&1 &
15 4 * * * service mysql restart >/dev/null 2>&1 &
#防止redis 超负荷运行 挂掉了 18 4 * * * redis-server /etc/redis.conf >/dev/null 2>&1 &
19 4 * * * redis-server /etc/redis6380.conf >/dev/null 2>&1 &
20 4 * * * service redis restart >/dev/null 2>&1 &
*/5 * * * * cd /var/www/charRoom && php think Swoole -m "monitor" >/dev/null 2>&1 &
1 * * * * cd /var/www/charRoom && php think Swoole -m "reload" >/dev/null 2>&1 &