redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused

在启动redis之后,想要停止服务的时候,发现了这个错误:

原因:

在之前将redis前台启动的时候,是没有pid文件的,之后我将redis改成后台启动,但是没有将redis进程杀掉。

解决方法:

将redis进程杀掉就可以了。

原文地址:https://www.cnblogs.com/allenyip/p/10927105.html

时间: 2024-11-07 09:45:42

redis连接错误:Could not connect to Redis at 127.0.0.1:6379: Connection refused的相关文章

Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused

Could not connect to Redis at 127.0.0.1:6379: Connection refused [[email protected] bin]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused [[email protected] /]# redis-server /etc/redis.conf [[email protected] /]# redis-cli

Could not connect to Redis at 192.168.0.129:6379: Connection refused

在虚拟机上(CentOS 6.7)本机连接自己的redis [[email protected] bin]# ./redis-cli -h 192.168.0.129 -p 6379 Could not connect to Redis at 192.168.0.129:6379: Connection refused Could not connect to Redis at 192.168.0.129:6379: Connection refused not connected> 查看配置文

Could not connect to Redis at 127.0.0.1:6379: Connection refused

启动redis:  redis-server ../redis.conf redis启动成功后 执行命令行redis-cli报:Could not connect to Redis at 127.0.0.1:6379: Connection refused错误 那是因为redis安装路径下的redis.conf文件配置未修改: redis.conf文件中: 将daemonize no 修改为 daemonize yes 再输入 redis-server /usr/local/src/redis-

Redis 服务端配置——Could not connect to Redis at 127.0.0.1:6379: Connection refused

[[email protected] 桌面]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused Could not connect to Redis at 127.0.0.1:6379: Connection refused not connected> exit [[email protected] 桌面]# redis-server /etc/redis.conf [[email prote

我遇到的错误curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused

今天我用curl命令,无论如何都是出现: curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused 找了很久,不知道是什么问题,后来发现curl有一个配置文件: p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff } span.s1 { } ~/.curlrc 里

git时 Failed to connect to 127.0.0.1 port 1080: Connection refused

在公司换了一台电脑之后发现git clone 和 npm install都失败,报错为 fatal: unable to access 'https://github.com/netease-im/NIM_PC_UIKit/': Failed to connect to 127.0.0.1 port 1080: Connection refused 产生原因:本地使用了端口代理,导致连接失败 解决办法:在本机全局搜索 gitconfig 打开文件,删除有关proxy的所有行,只删除与 proxy

windows redis 连接错误Creating Server TCP listening socket 127.0.0.1:637 9: bind: No error

报错信息如下: [10036] 30 Dec 10:23:49.616 # Creating Server TCP listening socket 127.0.0.1:637 9: bind: No error[8660] 30 Dec 10:23:57.132 # Creating Server TCP listening socket *:6379: listen : Unknown error 解决方案如下按顺序输入如下命令就可以连接成功 1. Redis-cli.exe2. shutd

解决redis连接错误:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to...

今天Redis服务器在连接redis数据库时突然报错:MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk. Commands that may modify the data set are disabled, because this instance is configured to report errors during writes if R

NFS错误Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno=Connection refused

NFS报错一例 [[email protected] ~]# /etc/init.d/portreserve start Starting portreserve:                                      [  OK  ] [[email protected] ~]# /etc/init.d/nfs start Starting NFS services:                                     [  OK  ] Starting