当前位置:论坛首页 > Linux面板 > 求助

【已完成】redis显示异常

发表在 Linux面板2024-7-16 03:23  关闭 [复制链接] 10 1013

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.20
系统版本:centos7.9
问题描述:redis可以正常连接。但面板查看redis数据库始终显示异常。
相关截图(日志、错误):

WX20240716-031612@2x.png WX20240716-031634@2x.png
使用道具 举报 只看该作者 回复
发表于 2024-7-16 03:35:16 | 显示全部楼层
什么升级面板、修复面板、重载重启redis配置都试过。都不行

以前也遇到过一次已经不记得如何修复的。
使用道具 举报 回复 支持 反对
发表于 2024-7-16 09:50:22 | 显示全部楼层
您好,重启一下redis,显示为无法与本地链接,您这边是否可以将日志信息发一下
面板左侧列表中的日志,软件日志,redis,错误日志
使用道具 举报 回复 支持 反对
发表于 2024-7-16 15:20:11 | 显示全部楼层
本帖最后由 宝塔用户_hbutzt 于 2024-7-16 15:22 编辑
运维技术阿闯 发表于 2024-7-16 09:50
您好,重启一下redis,显示为无法与本地链接,您这边是否可以将日志信息发一下
面板左侧列表中的日志,软件 ...

已经重启过n次了,面板也修复过了,日志全是这种
  1. 17458:M 16 Jul 2024 02:42:55.565 * Server initialized
  2. 17458:M 16 Jul 2024 02:42:55.565 * Loading RDB produced by version 7.2.4
  3. 17458:M 16 Jul 2024 02:42:55.565 * RDB age 462 seconds
  4. 17458:M 16 Jul 2024 02:42:55.565 * RDB memory usage when created 1.01 Mb
  5. 17458:M 16 Jul 2024 02:42:55.565 * Done loading RDB, keys loaded: 2, keys expired: 0.
  6. 17458:M 16 Jul 2024 02:42:55.565 * DB loaded from disk: 0.001 seconds
  7. 17458:M 16 Jul 2024 02:42:55.565 * Ready to accept connections tcp
  8. 17458:M 16 Jul 2024 02:56:49.689 * 10 changes in 300 seconds. Saving...
  9. 17458:M 16 Jul 2024 02:56:49.690 * Background saving started by pid 18841
  10. 18841:C 16 Jul 2024 02:56:49.695 * DB saved on disk
  11. 18841:C 16 Jul 2024 02:56:49.696 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  12. 17458:M 16 Jul 2024 02:56:49.790 * Background saving terminated with success
  13. 19476:C 16 Jul 2024 03:05:32.233 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
  14. 19476:C 16 Jul 2024 03:05:32.233 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=19476, just started
  15. 19476:C 16 Jul 2024 03:05:32.233 * Configuration loaded
  16. 19476:M 16 Jul 2024 03:05:32.235 * monotonic clock: POSIX clock_gettime
  17. _._
  18. _.-``__ ''-._
  19. _.-`` `. `_. ''-._ Redis 7.2.4 (00000000/0) 64 bit
  20. .-`` .-```. ```\/ _.,_ ''-._
  21. ( ' , .-` | `, ) Running in standalone mode
  22. |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
  23. | `-._ `._ / _.-' | PID: 19476
  24. `-._ `-._ `-./ _.-' _.-'
  25. |`-._`-._ `-.__.-' _.-'_.-'|
  26. | `-._`-._ _.-'_.-' | https://redis.io
  27. `-._ `-._`-.__.-'_.-' _.-'
  28. |`-._`-._ `-.__.-' _.-'_.-'|
  29. | `-._`-._ _.-'_.-' |
  30. `-._ `-._`-.__.-'_.-' _.-'
  31. `-._ `-.__.-' _.-'
  32. `-._ _.-'
  33. `-.__.-'

  34. 19476:M 16 Jul 2024 03:05:32.237 * Server initialized
  35. 19476:M 16 Jul 2024 03:05:32.238 * Loading RDB produced by version 7.2.4
  36. 19476:M 16 Jul 2024 03:05:32.238 * RDB age 523 seconds
  37. 19476:M 16 Jul 2024 03:05:32.238 * RDB memory usage when created 1.11 Mb
  38. 19476:M 16 Jul 2024 03:05:32.238 * Done loading RDB, keys loaded: 4, keys expired: 0.
  39. 19476:M 16 Jul 2024 03:05:32.238 * DB loaded from disk: 0.001 seconds
  40. 19476:M 16 Jul 2024 03:05:32.239 * Ready to accept connections tcp
  41. 19476:M 16 Jul 2024 03:10:33.098 * 10 changes in 300 seconds. Saving...
  42. 19476:M 16 Jul 2024 03:10:33.100 * Background saving started by pid 20638
  43. 20638:C 16 Jul 2024 03:10:33.104 * DB saved on disk
  44. 20638:C 16 Jul 2024 03:10:33.105 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  45. 19476:M 16 Jul 2024 03:10:33.200 * Background saving terminated with success
  46. 19476:M 16 Jul 2024 03:15:34.036 * 10 changes in 300 seconds. Saving...
  47. 19476:M 16 Jul 2024 03:15:34.038 * Background saving started by pid 21754
  48. 21754:C 16 Jul 2024 03:15:34.043 * DB saved on disk
  49. 21754:C 16 Jul 2024 03:15:34.044 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  50. 19476:M 16 Jul 2024 03:15:34.139 * Background saving terminated with success
  51. 19476:M 16 Jul 2024 03:30:35.046 * 1 changes in 900 seconds. Saving...
  52. 19476:M 16 Jul 2024 03:30:35.047 * Background saving started by pid 22997
  53. 22997:C 16 Jul 2024 03:30:35.051 * DB saved on disk
  54. 22997:C 16 Jul 2024 03:30:35.053 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  55. 19476:M 16 Jul 2024 03:30:35.147 * Background saving terminated with success
  56. 19476:M 16 Jul 2024 03:31:12.276 * DB saved on disk
  57. 19476:M 16 Jul 2024 03:36:13.047 * 10 changes in 300 seconds. Saving...
  58. 19476:M 16 Jul 2024 03:36:13.048 * Background saving started by pid 23548
  59. 23548:C 16 Jul 2024 03:36:13.053 * DB saved on disk
  60. 23548:C 16 Jul 2024 03:36:13.054 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  61. 19476:M 16 Jul 2024 03:36:13.149 * Background saving terminated with success
  62. 19476:M 16 Jul 2024 03:51:14.060 * 1 changes in 900 seconds. Saving...
  63. 19476:M 16 Jul 2024 03:51:14.062 * Background saving started by pid 24671
  64. 24671:C 16 Jul 2024 03:51:14.066 * DB saved on disk
  65. 24671:C 16 Jul 2024 03:51:14.067 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  66. 19476:M 16 Jul 2024 03:51:14.163 * Background saving terminated with success
  67. 19476:M 16 Jul 2024 04:03:28.367 * 10 changes in 300 seconds. Saving...
  68. 19476:M 16 Jul 2024 04:03:28.369 * Background saving started by pid 25543
  69. 25543:C 16 Jul 2024 04:03:28.373 * DB saved on disk
  70. 25543:C 16 Jul 2024 04:03:28.374 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  71. 19476:M 16 Jul 2024 04:03:28.469 * Background saving terminated with success
  72. 19476:M 16 Jul 2024 04:18:29.078 * 1 changes in 900 seconds. Saving...
  73. 19476:M 16 Jul 2024 04:18:29.079 * Background saving started by pid 26561
  74. 26561:C 16 Jul 2024 04:18:29.085 * DB saved on disk
  75. 26561:C 16 Jul 2024 04:18:29.086 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  76. 19476:M 16 Jul 2024 04:18:29.180 * Background saving terminated with success
  77. 19476:M 16 Jul 2024 04:33:30.018 * 1 changes in 900 seconds. Saving...
  78. 19476:M 16 Jul 2024 04:33:30.020 * Background saving started by pid 27598
  79. 27598:C 16 Jul 2024 04:33:30.031 * DB saved on disk
  80. 27598:C 16 Jul 2024 04:33:30.034 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  81. 19476:M 16 Jul 2024 04:33:30.120 * Background saving terminated with success
  82. 19476:M 16 Jul 2024 04:48:31.005 * 1 changes in 900 seconds. Saving...
  83. 19476:M 16 Jul 2024 04:48:31.007 * Background saving started by pid 28600
  84. 28600:C 16 Jul 2024 04:48:31.014 * DB saved on disk
  85. 28600:C 16 Jul 2024 04:48:31.017 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  86. 19476:M 16 Jul 2024 04:48:31.107 * Background saving terminated with success
  87. 19476:M 16 Jul 2024 05:03:32.091 * 1 changes in 900 seconds. Saving...
  88. 19476:M 16 Jul 2024 05:03:32.092 * Background saving started by pid 29617
  89. 29617:C 16 Jul 2024 05:03:32.096 * DB saved on disk
  90. 29617:C 16 Jul 2024 05:03:32.097 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  91. 19476:M 16 Jul 2024 05:03:32.193 * Background saving terminated with success
  92. 19476:M 16 Jul 2024 05:18:33.097 * 1 changes in 900 seconds. Saving...
  93. 19476:M 16 Jul 2024 05:18:33.099 * Background saving started by pid 30556
  94. 30556:C 16 Jul 2024 05:18:33.103 * DB saved on disk
  95. 30556:C 16 Jul 2024 05:18:33.104 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  96. 19476:M 16 Jul 2024 05:18:33.199 * Background saving terminated with success
  97. 19476:M 16 Jul 2024 05:34:04.228 * 1 changes in 900 seconds. Saving...
  98. 19476:M 16 Jul 2024 05:34:04.231 * Background saving started by pid 31512
  99. 31512:C 16 Jul 2024 05:34:04.238 * DB saved on disk
  100. 31512:C 16 Jul 2024 05:34:04.240 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  101. 19476:M 16 Jul 2024 05:34:04.331 * Background saving terminated with success
  102. 19476:M 16 Jul 2024 05:49:05.032 * 1 changes in 900 seconds. Saving...
  103. 19476:M 16 Jul 2024 05:49:05.035 * Background saving started by pid 32599
  104. 32599:C 16 Jul 2024 05:49:05.044 * DB saved on disk
  105. 32599:C 16 Jul 2024 05:49:05.045 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
  106. 19476:M 16 Jul 2024 05:49:05.135 * Background saving terminated with success
  107. 19476:M 16 Jul 2024 05:58:13.399 * 10 changes in 300 seconds. Saving...
  108. 19476:M 16 Jul 2024 05:58:13.401 * Background saving started by pid 852
  109. 852:C 16 Jul 2024 05:58:13.406 * DB saved on disk
复制代码

使用道具 举报 回复 支持 反对
发表于 2024-7-16 15:42:25 | 显示全部楼层
宝塔用户_hbutzt 发表于 2024-7-16 15:20
已经重启过n次了,面板也修复过了,日志全是这种

您好,日志上没有看到错误信息,是一些rdb备份,您这边要看一下服务器的内存是否充足
其次使用/etc/init.d/redis start命令启动一下redis看是什么反应
使用道具 举报 回复 支持 反对
发表于 2024-7-16 15:56:55 | 显示全部楼层
运维技术阿闯 发表于 2024-7-16 15:42
您好,日志上没有看到错误信息,是一些rdb备份,您这边要看一下服务器的内存是否充足
其次使用/etc/init. ...

内存完全够的,还有至少50%

运行命令

  1. [root@web ~]# /etc/init.d/redis start
  2. redis is running! (19476)
复制代码


网站连接redis什么都正常,就是redis面板打开提示异常,也不显示数据库
使用道具 举报 回复 支持 反对
发表于 2024-7-16 16:29:27 | 显示全部楼层
宝塔用户_hbutzt 发表于 2024-7-16 15:56
内存完全够的,还有至少50%

运行命令

您好,您这边检查一下您的配置文件里边的绑定ip是否正常
参考这个帖子
https://blog.csdn.net/qq_36977923/article/details/121978293
使用道具 举报 回复 支持 反对
发表于 2024-7-16 22:26:19 | 显示全部楼层
运维技术阿闯 发表于 2024-7-16 16:29
您好,您这边检查一下您的配置文件里边的绑定ip是否正常
参考这个帖子
https://blog.csdn.net/qq_3697792 ...

我redis的ip绑定的一直是

bind 127.0.0.1 172.0.0.1

我改成
bind 0.0.0.0

就正常了。我之前一直是绑定双ip使用。你们宝塔不支持多ip绑定吗
使用道具 举报 回复 支持 反对
发表于 2024-7-17 10:06:06 | 显示全部楼层
宝塔用户_hbutzt 发表于 2024-7-16 22:26
我redis的ip绑定的一直是

bind 127.0.0.1 172.0.0.1

您好,可以通过换行来解决,一个bind里边无法两个ip
可以
bind    xxx.xxx.xxx.xxx
bind xx.xxx.xxx.x
使用道具 举报 回复 支持 反对
发表于 2024-7-17 11:06:11 | 显示全部楼层
运维技术阿闯 发表于 2024-7-17 10:06
您好,可以通过换行来解决,一个bind里边无法两个ip
可以
bind    xxx.xxx.xxx.xxx

明白了,非常感谢您的耐心帮助。
使用道具 举报 回复 支持 反对
发表于 2024-7-17 11:50:02 | 显示全部楼层
宝塔用户_hbutzt 发表于 2024-7-17 11:06
明白了,非常感谢您的耐心帮助。

不客气,问题解决了就好,后续有问题可以再开新帖呢,这边就闭贴了,祝您生活愉快
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表