宝塔用户_hbutzt 发表于 2024-7-16 03:23:37

【已完成】redis显示异常

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

宝塔用户_hbutzt 发表于 2024-7-16 03:35:16

什么升级面板、修复面板、重载重启redis配置都试过。都不行

以前也遇到过一次已经不记得如何修复的。

运维技术阿闯 发表于 2024-7-16 09:50:22

您好,重启一下redis,显示为无法与本地链接,您这边是否可以将日志信息发一下
面板左侧列表中的日志,软件日志,redis,错误日志

宝塔用户_hbutzt 发表于 2024-7-16 15:20:11

本帖最后由 宝塔用户_hbutzt 于 2024-7-16 15:22 编辑

运维技术阿闯 发表于 2024-7-16 09:50
您好,重启一下redis,显示为无法与本地链接,您这边是否可以将日志信息发一下
面板左侧列表中的日志,软件 ...
已经重启过n次了,面板也修复过了,日志全是这种17458:M 16 Jul 2024 02:42:55.565 * Server initialized
17458:M 16 Jul 2024 02:42:55.565 * Loading RDB produced by version 7.2.4
17458:M 16 Jul 2024 02:42:55.565 * RDB age 462 seconds
17458:M 16 Jul 2024 02:42:55.565 * RDB memory usage when created 1.01 Mb
17458:M 16 Jul 2024 02:42:55.565 * Done loading RDB, keys loaded: 2, keys expired: 0.
17458:M 16 Jul 2024 02:42:55.565 * DB loaded from disk: 0.001 seconds
17458:M 16 Jul 2024 02:42:55.565 * Ready to accept connections tcp
17458:M 16 Jul 2024 02:56:49.689 * 10 changes in 300 seconds. Saving...
17458:M 16 Jul 2024 02:56:49.690 * Background saving started by pid 18841
18841:C 16 Jul 2024 02:56:49.695 * DB saved on disk
18841:C 16 Jul 2024 02:56:49.696 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
17458:M 16 Jul 2024 02:56:49.790 * Background saving terminated with success
19476:C 16 Jul 2024 03:05:32.233 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
19476:C 16 Jul 2024 03:05:32.233 * Redis version=7.2.4, bits=64, commit=00000000, modified=0, pid=19476, just started
19476:C 16 Jul 2024 03:05:32.233 * Configuration loaded
19476:M 16 Jul 2024 03:05:32.235 * monotonic clock: POSIX clock_gettime
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 7.2.4 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 19476
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | https://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'

19476:M 16 Jul 2024 03:05:32.237 * Server initialized
19476:M 16 Jul 2024 03:05:32.238 * Loading RDB produced by version 7.2.4
19476:M 16 Jul 2024 03:05:32.238 * RDB age 523 seconds
19476:M 16 Jul 2024 03:05:32.238 * RDB memory usage when created 1.11 Mb
19476:M 16 Jul 2024 03:05:32.238 * Done loading RDB, keys loaded: 4, keys expired: 0.
19476:M 16 Jul 2024 03:05:32.238 * DB loaded from disk: 0.001 seconds
19476:M 16 Jul 2024 03:05:32.239 * Ready to accept connections tcp
19476:M 16 Jul 2024 03:10:33.098 * 10 changes in 300 seconds. Saving...
19476:M 16 Jul 2024 03:10:33.100 * Background saving started by pid 20638
20638:C 16 Jul 2024 03:10:33.104 * DB saved on disk
20638:C 16 Jul 2024 03:10:33.105 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 03:10:33.200 * Background saving terminated with success
19476:M 16 Jul 2024 03:15:34.036 * 10 changes in 300 seconds. Saving...
19476:M 16 Jul 2024 03:15:34.038 * Background saving started by pid 21754
21754:C 16 Jul 2024 03:15:34.043 * DB saved on disk
21754:C 16 Jul 2024 03:15:34.044 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 03:15:34.139 * Background saving terminated with success
19476:M 16 Jul 2024 03:30:35.046 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 03:30:35.047 * Background saving started by pid 22997
22997:C 16 Jul 2024 03:30:35.051 * DB saved on disk
22997:C 16 Jul 2024 03:30:35.053 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 03:30:35.147 * Background saving terminated with success
19476:M 16 Jul 2024 03:31:12.276 * DB saved on disk
19476:M 16 Jul 2024 03:36:13.047 * 10 changes in 300 seconds. Saving...
19476:M 16 Jul 2024 03:36:13.048 * Background saving started by pid 23548
23548:C 16 Jul 2024 03:36:13.053 * DB saved on disk
23548:C 16 Jul 2024 03:36:13.054 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 03:36:13.149 * Background saving terminated with success
19476:M 16 Jul 2024 03:51:14.060 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 03:51:14.062 * Background saving started by pid 24671
24671:C 16 Jul 2024 03:51:14.066 * DB saved on disk
24671:C 16 Jul 2024 03:51:14.067 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 03:51:14.163 * Background saving terminated with success
19476:M 16 Jul 2024 04:03:28.367 * 10 changes in 300 seconds. Saving...
19476:M 16 Jul 2024 04:03:28.369 * Background saving started by pid 25543
25543:C 16 Jul 2024 04:03:28.373 * DB saved on disk
25543:C 16 Jul 2024 04:03:28.374 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 04:03:28.469 * Background saving terminated with success
19476:M 16 Jul 2024 04:18:29.078 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 04:18:29.079 * Background saving started by pid 26561
26561:C 16 Jul 2024 04:18:29.085 * DB saved on disk
26561:C 16 Jul 2024 04:18:29.086 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 04:18:29.180 * Background saving terminated with success
19476:M 16 Jul 2024 04:33:30.018 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 04:33:30.020 * Background saving started by pid 27598
27598:C 16 Jul 2024 04:33:30.031 * DB saved on disk
27598:C 16 Jul 2024 04:33:30.034 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 04:33:30.120 * Background saving terminated with success
19476:M 16 Jul 2024 04:48:31.005 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 04:48:31.007 * Background saving started by pid 28600
28600:C 16 Jul 2024 04:48:31.014 * DB saved on disk
28600:C 16 Jul 2024 04:48:31.017 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 04:48:31.107 * Background saving terminated with success
19476:M 16 Jul 2024 05:03:32.091 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 05:03:32.092 * Background saving started by pid 29617
29617:C 16 Jul 2024 05:03:32.096 * DB saved on disk
29617:C 16 Jul 2024 05:03:32.097 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 05:03:32.193 * Background saving terminated with success
19476:M 16 Jul 2024 05:18:33.097 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 05:18:33.099 * Background saving started by pid 30556
30556:C 16 Jul 2024 05:18:33.103 * DB saved on disk
30556:C 16 Jul 2024 05:18:33.104 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 05:18:33.199 * Background saving terminated with success
19476:M 16 Jul 2024 05:34:04.228 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 05:34:04.231 * Background saving started by pid 31512
31512:C 16 Jul 2024 05:34:04.238 * DB saved on disk
31512:C 16 Jul 2024 05:34:04.240 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 05:34:04.331 * Background saving terminated with success
19476:M 16 Jul 2024 05:49:05.032 * 1 changes in 900 seconds. Saving...
19476:M 16 Jul 2024 05:49:05.035 * Background saving started by pid 32599
32599:C 16 Jul 2024 05:49:05.044 * DB saved on disk
32599:C 16 Jul 2024 05:49:05.045 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
19476:M 16 Jul 2024 05:49:05.135 * Background saving terminated with success
19476:M 16 Jul 2024 05:58:13.399 * 10 changes in 300 seconds. Saving...
19476:M 16 Jul 2024 05:58:13.401 * Background saving started by pid 852
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看是什么反应

宝塔用户_hbutzt 发表于 2024-7-16 15:56:55

运维技术阿闯 发表于 2024-7-16 15:42
您好,日志上没有看到错误信息,是一些rdb备份,您这边要看一下服务器的内存是否充足
其次使用/etc/init. ...

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

运行命令

# /etc/init.d/redis start
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

宝塔用户_hbutzt 发表于 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

宝塔用户_hbutzt 发表于 2024-7-17 11:06:11

运维技术阿闯 发表于 2024-7-17 10:06
您好,可以通过换行来解决,一个bind里边无法两个ip
可以
bind    xxx.xxx.xxx.xxx


明白了,非常感谢您的耐心帮助。:hug:

运维技术阿闯 发表于 2024-7-17 11:50:02

宝塔用户_hbutzt 发表于 2024-7-17 11:06
明白了,非常感谢您的耐心帮助。

不客气,问题解决了就好,后续有问题可以再开新帖呢,这边就闭贴了,祝您生活愉快
页: [1]
查看完整版本: 【已完成】redis显示异常