用了webman 框架
我使用redis 來(lái)作為隊(duì)列 和緩存用
系統(tǒng)每隔幾天就會(huì)出現(xiàn)redis自動(dòng)關(guān)閉的情況!
--redis 日志------
356554:M 17 May 2024 17:50:42.563 Ready to accept connections tcp
356554:signal-handler (1715948472) Received SIGINT scheduling shutdown...
356554:M 17 May 2024 17:51:12.852 User requested shutdown...
查看記錄
---linux 日志-------
May 13 07:24:12 ip-172-30-2-53 kernel: [8500195.943921] systemd-journald[4114627]: Received SIGINT from PID 357638 (php).
php 有發(fā)過關(guān)閉redis的命令!
webman 在什么情況會(huì)發(fā)出關(guān)閉redis的命令!
---webman---stdout.log 日志
查看報(bào)錯(cuò)日志 都是連接redis失敗的記錄
Exception: Workerman Redis Connection Failed (0.00021696090698242 seconds) in /www/wwwroot/webman/vendor/workerman/redis/src/Client.php:361
Stack trace:
2024-05-17 17:48:25 pid:356334 Workerman[start.php] is stopping ...
2024-05-17 17:48:25 pid:356154 Workerman[start.php] stopping ...
2024-05-17 17:48:25 pid:356154 Workerman[start.php] has been stopped
2024-05-17 17:48:25 pid:356334 Workerman[start.php] stop success
2024-05-17 17:49:14 pid:356346 Workerman[start.php] start in DAEMON mode
2024-05-17 17:50:00 pid:356456 RedisException: Connection refused in /www/wwwroot/Workerman/vendor/illuminate/redis/Connectors/PhpRedisConnector.php:159
Stack trace:
2024-05-17 17:50:00 pid:356349 worker[task:356456] exit with status 64000
當(dāng)我重啟redis之后 再開啟webman 一分鐘后 redis又連不上了?。?!
是不是redis里面保存的數(shù)據(jù)有問題!!
只能把dump.rdb刪除了 系統(tǒng)才能正常運(yùn)行!!