当前位置:网站首页>Linux bash: redis-server: command not found
Linux bash: redis-server: command not found
2022-07-31 13:48:00 【Small code helps you move forward】
Project Scenario:
When you have installed Redis in Linux and want to start it, enter the redis-server command, but cannot run it, and report redis-server: command not found.
Problem description
Linux installed Redis, use the reids-server command when running, Redis did not start, returned the message redis-server: command not found.
Cause Analysis:
The reason for this is because the command system we enter will go to the /usr/bin directory to look for it. If the command is not found in this directory, it will prompt that the command was not found.
Solution:
Since the command cannot be found in the bin directory, we can use this command as a global command. Defining a global command can not only facilitate our later operations, but also simplify the length of the command and facilitate memory.
So we directly set the redis-server command as a global command, find the redis-server command under the path where we installed redis, and define it as a global command to use it.
ln -s /usr/local/redis/redis-6.2.6/src/redis-server /usr/bin/redis-server
This method can also be used when other commands are used to report that the command is not found. The command path is followed by ln -s. The above is the whole content of this article.
I am the editor of this article LXL
If you encounter a bug and need help,
Welcome to add wx:
xmzl1988
Note "csdn blog"
Warm reminder that this is a paid service;
边栏推荐
- Error: npm ERR code EPERM
- 20.nn.Module
- MySQL has played to such a degree, no wonder the big manufacturers are rushing to ask for it!
- 爱可可AI前沿推介(7.31)
- 技能大赛dhcp服务训练题
- numpy矩阵和向量的保存与加载,以及使用保存的向量进行相似度计算
- 关于MySQL主从复制的数据同步延迟问题
- An article makes it clear!What is the difference and connection between database and data warehouse?
- 自制的数据库安全攻防题,相关靶机自己制作
- The operator,
猜你喜欢
随机推荐
自制的数据库安全攻防题,相关靶机自己制作
0X7FFFFFFF,0X80000000「建议收藏」
【redis】发布和订阅消息
C# control StatusStrip use
生产力工具和插件
战略进攻能力的重要性,要远远高于战略防守能力
leetcode:2032. Values that appear in at least two arrays
推荐系统-召回阶段-2013:DSSM(双塔模型)【Embedding(语义向量)召回】【微软】
VU 非父子组件通信
Error IDEA Terminated with exit code 1
csdn发文助手问题
清除浮动的四种方式及其原理理解
ICML2022 | 面向自监督图表示学习的全粒度自语义传播
C#高级--委托
Controller层代码这么写,简洁又优雅!
Unity study notes Description of AVPro video jump function (Seeking)
Shell脚本经典案例:文件的备份
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
MATLAB | 我也做了一套绘图配色可视化模板
ADS与C#通信