博客
关于我
Jstorm执行task报错windows CONFIG SET protected-mode no
阅读量:398 次
发布时间:2019-03-06

本文共 1514 字,大约阅读时间需要 5 分钟。

  windows  CONFIG SET protected-mode no报错说redis受保护模式,redis使用的是Redis-x64-3.2.100,参考说是redis3.2之后加入的特性,只能本地连接,需要关闭掉,重启redis。

  搭建的redis集群,需要在每个reids配置文件中进行修改:

# redis.windows-7000.confport 7000      loglevel notice    logfile "D:/Redis_dir/Logs/redis7000_log.txt"       appendonly yesappendfilename "appendonly.7000.aof"   cluster-enabled yes                                    cluster-config-file nodes.7000.confcluster-node-timeout 15000cluster-slave-validity-factor 10cluster-migration-barrier 1cluster-require-full-coverage yes# 加入以下两行protected-mode no daemonize no

  7000,7001皆需要加上,重启这几个服务:

  

  

  期间遇到:Creating Server TCP listening socket 127.0.0.1:6379: bind: No error 参考博友方法执行解决了问题:

redis-cli.exeshutdownexitredis-server.exe

  具体原因参考StackOverflow上的:

  This service uses the default config and binds to port 6379. When you start redis-server from the command line, if you haven't specified a different port through a config file, it picks up the default config again and tries to bind to port 6379 which fails.

  Your cli works because it connects to the redis service that's already listening on 6379. Your shutdown command stops the service and from there things work as expected. Mystery solved. Case closed.

  下面直接反应出来的,英文不好直接看中文@。@:

  windows  CONFIG SET protected-mode no问题解决了,Jstorm配置了redis,启动监听显示读取了配置,执行task没有读取到,报错:redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool,参考各位大神暂时还未解决,持续更新......

  更新一下,此处报错是因为jedis有某种机制缓存redis配置,redis还是使用原来配置导致。最后求助运维帮忙解决~。~

  

转载地址:http://mhkkz.baihongyu.com/

你可能感兴趣的文章
手把手教你安装Eclipse最新版本的详细教程 (非常详细,非常实用)
查看>>
《带你装B,带你飞》pytest成魔之路4 - fixture 之大解剖
查看>>
互联网App应用程序测试流程及测试总结
查看>>
根据轨迹分析出用户家在哪
查看>>
PostgreSQL查询表名称及表结构
查看>>
是什么?评估分类器的常用概念----准确率,精确率,召回率
查看>>
linux中使用awk命令
查看>>
LAB2 内核的内存管理
查看>>
如何使用google搜索?
查看>>
Redis分布式锁的正确实现方式
查看>>
设计模式-抽象工厂模式
查看>>
MySQL Explain查看执行计划详解
查看>>
IntelliJ IDEA 中,项目文件右键菜单没有svn选项解决办法
查看>>
Spring 动态绑定多实现类实例综述
查看>>
IDEA 调试Java代码的两个技巧
查看>>
Spring AOP 面向切面编程之AOP是什么
查看>>
MyBatis常见面试题:#{}和${}的区别是什么?
查看>>
Vue 数组和对象更新,但视图未更新,背后的故事
查看>>
Key/Value之王Memcached初探:二、Memcached在.Net中的基本操作
查看>>
剑指Offer面试题:9.二进制中1的个数
查看>>