Redis已启动,准备接受连接,但命令无法正常运行。

huangapple go评论66阅读模式
英文:

Redis starts, is ready to accept connections, but commands does not works

问题

我在Ubuntu上使用redis-server启动了Redis:
Redis已启动,准备接受连接,但命令无法正常运行。

127.0.0.1:6379> 在最后一行没有显示,而且没有任何命令有效。如何修复这个问题?

我尝试进入redis-cli,执行ping命令,但不起作用:
Redis已启动,准备接受连接,但命令无法正常运行。

英文:

I started redis on Ubuntu using redis-server:
Redis已启动,准备接受连接,但命令无法正常运行。

127.0.0.1:6379> doesn't appear on the last line and no command works. How to fix this?

I tryed to enter redis-cli, ping. Not working:
Redis已启动,准备接受连接,但命令无法正常运行。

答案1

得分: 0

  • 检查 Redis 服务器是否正在运行收集:

ps axufwww | grep 'redis'

  • 测试与正在运行的 Redis 连接:

echo "ping" | redis-cli

英文:
  • check if Redis server is running collecting:

ps axufwww | grep 'redis'

  • test the connection to Redis running:

echo "ping" | redis-cli

huangapple
  • 本文由 发表于 2023年4月13日 17:46:09
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004002.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定