Linuxhtml
安裝完redis單獨用命令:java
1
|
redis-server
|
報錯:linux
1
|
-bash: redis-server: command not found
|
說明redis-server不是全局命令,那麼假如到全局便可:redis
假如個人redis安裝路徑是:/home/prod/redis/redis-4.0.8bash
1
|
ln -s /home/prod/redis/redis-
4.0
.
8
/src/redis-server /usr/bin/redis-server
|
將spa
1
|
redis-server
|
放到/usr/bin下便可(至關於建立一個全局快捷方式)3d
原文:https://www.2cto.com/kf/201807/760379.htmlcode