运行redis-server报错bash: redis-server: command not found
运行redis-server报错bash: redis-server: command not found
原因:这是因为在系统的/usr/bin目录下没有命令文件
解决方案:
将redis-server、redis-cli、redis-benchmark、redis-check-aof、redis-check-rdb、redis-sentinel这些可执行文件复制到/usr/bin下
例如:cp -r /usr/local/myredis/bin /usr/bin
注:我的redis是安装在 /usr/local/myredis/下