Linux -bash: redis-cli: command not found(亲测可行)

https://www.cnblogs.com/lxwphp/p/11129166.html

安装完redis单独用命令:

1

redis-server

报错:

1

-bash: redis-server: command not found

说明redis-server不是全局命令,那么假如到全局即可:

假如我的redis安装路径是:/home/prod/redis/redis-4.0.8

1

ln -s /home/prod/redis/redis-4.0.8/src/redis-server /usr/bin/redis-server

1

redis-server

放到/usr/bin下即可(相当于创建一个全局快捷方式)

Linux -bash: redis-cli: command not found(亲测可行)_第1张图片

 

 

原文:https://www.2cto.com/kf/201807/760379.html

你可能感兴趣的:(linux)