Redis異常総括(継続収集中)

2088 ワード

  • telnet:connect to address 192.168.240.31:Connection refused解決:linuxファイアウォールを閉じ、起動を閉じるには、参照してください.構成:-bash:xxx:command not found新しくLinuxをインストールした後、必要なソフトウェアをインストールします(継続的に更新します...)
  • Could not connect to Redis at 192.168.240.113:6379:Connection refused解決:redisを必要とする.confのbind 127.0.0.1は注釈され、ローカルアクセスのみをバインドするわけではありません.
  • 接続に成功すると、操作時にエラーが発生します:
    (error) DENIED Redis is running in protected mode because protected mode is enabled, no bind address 
    was specified, no authentication password is requested to clients. In this mode connections are only 
    accepted from the loopback interface. If you want to connect from external computers to Redis you may 
    adopt one of the following solutions: 1) Just disable protected mode sending the command 
    'CONFIG SET protected-mode no' from the loopback interface by connecting to Redis from the same host 
    the server is running, however MAKE SURE Redis is not publicly accessible from internet if you do so. 
    Use CONFIG REWRITE to make this change permanent. 2) Alternatively you can just disable the protected 
    mode by editing the Redis configuration file, and setting the protected mode option to 'no', and then 
    restarting the server. 3) If you started the server manually just for testing, restart it with the 
    '--protected-mode no' option. 4) Setup a bind address or an authentication password. NOTE: You only need 
    to do one of the above things in order for the server to start accepting connections from the outside.
    解決:'CONFIG SET protected-mode no'この文は明らかで、私たちはredisを必要とします.confのprotected-modeをno
  • に変更
  • Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException:  Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?;  nested exception is java.io.EOFExceptionの解決:この例外は、シーケンス化および逆シーケンス化の例外に起因します.通常、redisサーバに手動でシーケンス化して値を格納し、エージェントで逆シーケンス化してタイムズを取得するのは間違っています.アクセスはコードで完了することが望ましい.
  • ……
  • ……
  • ……
  • ……