草庐IT

SSLv2_client_method

全部标签

java - 空指针异常 : Cannot send from MessageListener to client via websocket with Spring boot

在从Redis订阅消息后,我正在尝试向主题/topic/room发送消息。我的代码如下。@ComponentpublicclassRedisSubscriberimplementsMessageListener{staticprivateLoggerlog=Logger.getLogger(RedisSubscriber.class.getName());@AutowiredprivateSimpMessagingTemplatetemplate;@OverridepublicvoidonMessage(finalMessagemessage,finalbyte[]pattern){l

php - 异常 'BadMethodCallException' 消息 'Method handleQueuedMessage does not exist.'

我在Laravel4.3的本地环境中使用Redis作为电子邮件队列。我最近升级到Laravel5.4,当我现在尝试使用redis队列(默认)时:phpartisanqueue:listen我得到快速连续的输出语句,如下所示:Processing:mailer@handleQueuedMessage每个日志文件中都有一个错误:exception'BadMethodCallException'withmessage'MethodhandleQueuedMessagedoesnotexist.'inC:\xampp\htdocs\explore\vendor\laravel\framewor

php - Laravel 5.7 - 广播 - socket.io - redis : Nothing happen on client

几天后,我阅读了有关如何在本地计算机上设置laravel-echo的信息。我设法能够使用redis和socket.io运行laravel-echo-server。问题是事件被触发了,但是客户端没有任何反应。我知道事件已触发,因为它已登录到我的horizo​​n.log文件中。Horizonstartedsuccessfully.[2018-08-2918:35:30][31]Processing:App\Events\NewModel[2018-08-2918:35:31][31]Processed:App\Events\NewModel然后,在我的echo.log文件中,我可以看到用

redis - 什么在 CLIENT LIST 中生成 redis cmd=info?

当cmd=info在redis中生成时,他们是否可以跟踪实际运行的内容?我正在尝试追踪Redis中不断增加的未关闭连接列表。id=1937addr=127.0.0.1:59324fd=5name=age=70915idle=70915flags=Ndb=0sub=0psub=0multi=-1qbuf=0qbuf-free=0obl=0oll=0omem=0events=rcmd=info 最佳答案 Ad-hoc在这种情况下很难,但您可以使用CLIENTSETNAME下次在您的代码中。CLIENTLIST将返回“名称”。

javascript - 未在 for 循环内调用 Redis Client del 函数

我一直在尝试在for循环中调用redisClient.del函数,但该函数未返回任何状态。studentSchema.methods.generateAuthToken=function(){letadmin=this;letaccess='student';lettoken=jwt.sign({_id:student._id.toHexString(),access},HRCSECRET).toString();student.tokens.forEach(element=>{console.log(element.token);redisClient.del(element.tok

redis - WSL安装Redis后报错: Executing test client: kill: No such process

我正在尝试在WSL上安装Redis,但集群命令一直失败。我运行了maketest并得到了以下输出:...[ok]:PSYNC2:clusterisconsistentafterfailoverLoggedwarnings(pid8970):(none)[exception]:Executingtestclient:kill:(9088):Nosuchprocess.kill:(9088):Nosuchprocesswhileexecuting"execkill-9$bench_pid"("uplevel"bodyline47)invokedfromwithin"uplevel1$cod

spring-boot - 组织.redisson.client.RedisNodeNotFoundException : Node: NodeSource hasn't been discovered yet

我是Redisson的新手,我试图在Redis缓存的帮助下为分布式锁集成redisson+springboot。我遇到以下错误:org.redisson.client.RedisNodeNotFoundException:Node:NodeSource[slot=14577,addr=redis://10.150.77.93:6381,redisClient=null,redirect=MOVED,entry=null]尚未被发现。在org.redisson.connection.MasterSlaveConnectionManager.createNodeNotFoundFuture

exception - 我想知道,为什么会得到redis.clients.jedis.exceptions.JedisConnectionException异常?

我在我的java项目中使用了jedis,一主一从,一旦从机启动,它在redis_slave.log中就会出现这样的情况:44764[2721]24Dec14:07:41.157*ConnectingtoMASTER...44765[2721]24Dec14:07:41.158*MASTERSLAVEsyncstarted44766[2721]24Dec14:07:41.158#ErrorconditiononsocketforSYNC:Connectionrefused而在我的java源文件中,我想删除redis中的所有数据,所以我写了这段代码:publicclassTestJedis

python - 类型错误 : unbound method sadd() must be called with StrictRedis instance as first argument (got str instance instead)

我在python应用程序中有以下内容:fromredisimportRedis,StrictRedis......r=line.split("")[0]StrictRedis.sadd('my_set',r)我在标题中遇到错误。我做错了什么? 最佳答案 StrictRedis(host='localhost',port=6379,db=0,password=None,socket_timeout=None,connection_pool=None,charset='utf-8',errors='strict',unix_socket

ruby-on-rails - Redis `CLIENT KILL TYPE pubsub` ruby 中的等效命令

我想知道是否有与RedisCLIENTKILLTYPEpubsub命令等效的ruby​​或hack方法。谢谢你的帮助 最佳答案 如果您正在谈论使用redisgem将Redis命令重写为ruby,您可以使用启动的Redis客户端上可用的call方法调用任何命令。所有参数都必须在数组中与命令名称一起传递,例如:#firstjustanexamplethatcallingcommandslikethisworks:Redis.new.client.call(["client","list"])#=>"addr=127.0.0.1:3796