位置:首页 » 文章/教程分享 » Redis PING命令

Redis PING命令来检查是否服务器正在运行。

返回值

返回字符串

语法

redis PING命令的基本语法如下所示:

redis 127.0.0.1:6379> PING  

例子

redis 127.0.0.1:6379> PING
PONG