redis报错解决
1、Connecting to node 127.0.0.17000 [ERR] Sorry, can't connect to node 192.168.1.917000
redis集群:Connecting to node 127.0.0.1:7000: [ERR] Sorry, can't connect to node 192.168.1.91:7000
2016年12月17日 01:29:53
阅读数:6168
Connecting to node 127.0.0.1:7000: [ERR] Sorry, can't connect to node 192.168.1.91:7001
这个错误的话那就查看下你6个端口是否都启动了,没启动的话会报上面的错误
2、error) NOAUTH Authentication required.
出现认证问题,应该是设置了认证密码,输入密码既可以
方法一、
127.0.0.1:6379> auth "yourpassword"
例如密码是‘root’,当出现认证问题时候,输入“auth ‘root’”即可
127.0.0.1:6379> set name "fish"
(error) NOAUTH Authentication required.
127.0.0.1:6379> auth "root"
127.0.0.1:7000> auth joinu_1233
OK
方法二、
[root@bogon conf]# redis-cli -c -p 7000 -a joinu_1233
127.0.0.1:7000> set name fish
-> Redirected to slot [5798] located at 127.0.0.1:7002
OK
127.0.0.1:7002>
3、redis停止报错
Redis 停止时出现: (error) NOAUTH Authentication required.
复制代码
root@iZ25gdzs0p8Z:~# /etc/init.d/redis_6379 stop
Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
解决:
停止时要加登陆时密码。
[root@bogon conf]# redis-cli -c -p 7000 -a joinu_1233 shutdown
[root@bogon conf]# redis-cli -c -p 7000
Could not connect to Redis at 127.0.0.1:7000: Connection refused
Could not connect to Redis at 127.0.0.1:7000: Connection refused
not connected>
4、redis远程连接以及注意事项
[root@mch ~]# ps -ef | grep redis
root 2175 1 0 08:15 ? 00:00:05 /usr/local/bin/redis-server *:6379
/usr/local/bin/redis-server *:6379 中通过"*"就可以看出此时是允许所有的ip连接登录到这台redis服务上。
redis-cli -h 192.168.43.75 -p 6379 -a ilanniredis
5、reidis集群报错
[root@localhost src]# ./redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.3:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
报错:[ERR] Sorry, can't connect to node 172.0.0.0:7000
解决:重启centos系统,亲测,网上的都试过,没有用
6、在k8s里面连接redis报错
# redis-cli -h 10.104.130.187
Could not connect to Redis at 10.104.130.187:6379: No route to host
Could not connect to Redis at 10.104.130.187:6379: No route to host
解决:
把endpoint 的地址改成内网地址即可
7、k8s中连接redis错误: java.lang.NumberFormatException: For input string: "6379@16379"
把java配置文件中的端口写死,写成 6379
参考地址:https://blog.csdn.net/murongxuesheng/article/details/81562846
redis报错解决的更多相关文章
- gem install redis报错解决
在执行gem install redis时 提示: gem install redis ERROR: Error installing redis: redis r ...
- redis运用连接池报错解决
redis使用连接池报错解决redis使用十几小时就一直报异常 redis.clients.jedis.exceptions.JedisConnectionException: Could not g ...
- redis报错Windows error 0x70(a large memory)
redis报错Windows error 0x70 redis 嫌弃你内存不够了,就给你不开第二个实例. The Windows version of Redis allocates a large ...
- Redis报错总结
MISCONF Redis is configured to save RDB snapshots MISCONF Redis is configured to save RDB snapshots, ...
- filebeat output redis 报错 i/o timeout
filebeat output redis 报错 i/o timeout 先把报错内容贴出来. ERROR redis/client. go: Failed to RPUSH to redis li ...
- window下安装redis报错: creating server tcp listening socket 127.0.0.1:6379: bind No error
window下安装redis报错: creating server tcp listening socket 127.0.0.1:6379: bind No error 解决: 如果没有配置环境,在安 ...
- Redis报错 : (error) NOAUTH Authentication required.
原文:Redis报错 : (error) NOAUTH Authentication required. 这个错误是因为没有用密码登陆认证 , 先输入密码试试 . 127.0.0.1:6379> ...
- Windows安装redis报错处理(转!)
要谈则谈,要打便打! ---2019.5.9,贸易战 转自:http://www.yayihouse.com/yayishuwu/chapter/1297 安装redis报错信息 [9204] 15 ...
- 安装Redis-cluster-gem install redis报错的解决方案
错误描述: [root@eshop-cache01 local]# gem install redis ERROR: Loading command: install (LoadError) cann ...
随机推荐
- new函数
可以通过new函数直接创建一个类型的指针 变量名:=new(Type) 使用new函数创建的指针已有指向,可以使用*指针对象进行赋值. func main() { a := new(int) fmt. ...
- jQuery 实现手风琴菜单
main.js $(function(){ var tmp = null, $title = $('.title'), $con = $('.title > ul'); $title.click ...
- FreeRTOS任务优先级说明
https://www.cnblogs.com/yangguang-it/p/7156445.html#4217682 下面对 FreeRTOS 优先级相关的几个重要知识点进行下说明,这些知识点在以后 ...
- retrying failed action with response code: 403 错误解决
[2019-06-10T06:52:51,610][INFO ][logstash.outputs.elasticsearch] retrying failed action with respons ...
- [AngularJS] Decorator pattern for code reuse
Imaging you have a large application, inside this large application you have many small individual a ...
- [Luogu] 计算系数
https://www.luogu.org/problemnew/show/P1313#sub Answer = a ^ n * b ^ m * C(k, min(n, m)) 这里用费马小定理求逆 ...
- 【luoguP4124 】[CQOI2016]手机号码
题目描述 人们选择手机号码时都希望号码好记.吉利.比如号码中含有几位相邻的相同数字.不含谐音不吉利的数字等.手机运营商在发行新号码时也会考虑这些因素,从号段中选取含有某些特征的号码单独出售.为了便于前 ...
- codeforces#1159D. The minimal unique substring(打表找规律+构造)
题目链接: https://codeforces.com/contest/1159/problem/D 题意: 构造一个长度为$n$的$01$串,最小特殊连续字串的长度为$k$ 也就是,存在最小的$k ...
- OSX 改变PHP安装路径环境变量
当使用XAMPP来学习Laravel的时候,用composer安装laravel总是报错,说mcrypt is required ,但是当我在终端里打印 which php 显示的是usr/bin/p ...
- Nginx-HTTP之静态网页访问流程分析一
假设访问静态网页的配置如下: worker_processes 1; error_log stderr debug; daemon off; master_process on; events { w ...