Redis接続が与えられている:127.0.0.1:6379でRedisに接続できませんでした:接続が拒否されました



Being Given Redis Connection



[root@xxxxx bin]# redis-cli Could not connect to Redis at 127.0.0.1:6379: Connection refused [root@xxxxx /]# redis-server /etc/redis.conf [root@xxxxx /]# redis-cli redis 127.0.0.1:6379>

インストールされた拡張機能redisredisが接続しようとすると、クライアントが開きません。サーバーを開く必要があるため、サーバーを構成する必要があります-

1.daemonizeを見つけて変更します。daemonizeするredis.confはありません。 はい デフォルトになり始めることができるように 舞台裏 実行



[root@xxxxx conf.d]# vi /etc/redis.conf

2.クライアントの電源を入れて、サーバーが起動することを確認します

[root@xxxxx /]# redis-server /etc/redis.conf

3.クライアントの起動が成功しなかった場合、次のステップで終了します



今、あなたはアクセスすることができます

[root@xxxxx /]# redis-server /etc/redis.conf [root@xxxxx /]# redis-cli redis 127.0.0.1:6379>