-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathReadMe
More file actions
26 lines (15 loc) · 817 Bytes
/
ReadMe
File metadata and controls
26 lines (15 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This is Poker Game
And This is All of the shell script
#每天凌晨 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 &
20 4 * * * service redis restart >/dev/null 2>&1 &
# 每5分钟监控牌局server
*/5 * * * * cd /var/www/html/poker && php think Swoole -m "monitor" >/dev/null 2>&1 &
# 每小时执行一次 重启一下worker
1 * * * * cd /var/www/html/poker && php think Swoole -m "reload" >/dev/null 2>&1 &
#牌局解析 每分中检测一次
*/1 * * * * /bin/sh /var/www/html/wangSanBaErA/application/server/command/ResultLog.shell >/dev/null 2>&1 &
#每天凌晨两点
0 2 * * * cd /var/www/html/wangSanBaErA && php think CreateTable >/dev/null 2>&1 &