当前位置:网站首页>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;
边栏推荐
猜你喜欢

「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
![[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)](/img/a6/8d53f5087a33c2bea8c99a5bb922da.png)
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)

hyperf的启动源码分析(二)——请求如何到达控制器

endnote引用

Linux bash: redis-server: 未找到命令

抓住金三银四的尾巴,解锁程序员面试《刷题神器》

多智能体协同控制研究中光学动作捕捉与UWB定位技术比较

4.爬虫之Scrapy框架2数据解析&配置参数&数据持久化&提高Scrapy效率

爱可可AI前沿推介(7.31)

go使用makefile脚本编译应用
随机推荐
对数字化时代的企业来说,数据治理难做,但应该去做
基于改进YOLOv5的轻量化航空目标检测方法
基于神经网络的多柔性梁耦合结构振动控制
Install the latest pytorch gpu version
技能大赛训练题:交换机虚拟化练习
Selenium IDE for Selenium Automation Testing
C# List Usage List Introduction
CLion用于STM32开发
代码随想录笔记_哈希_454四数相加II
技能大赛训练题:ftp 服务攻防与加固
技能大赛训练题:交换机的远程管理
C#中+=的用法
Buffer 与 拥塞控制
「面经分享」西北大学 | 字节 生活服务 | 一面二面三面 HR 面
matlab as(assert dominance)
拥塞控制,CDN,端到端
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
C#Assembly的使用
go使用makefile脚本编译应用
已解决(pymysqL连接数据库报错)pymysqL.err.ProgrammingError: (1146,“Table ‘test.students‘ doesn‘t exist“)