-bash: redis-cli: command not found 我的redis安装在 /usr/local/redis/bin/redis-cli 做个软连接 就可以 ln -s /usr/local/redis/bin/redis-cli /usr/local/bin/redis-cli 完成后就可以全局使用 redis-cli