当前位置:网站首页>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;
边栏推荐
猜你喜欢
MySQL has played to such a degree, no wonder the big manufacturers are rushing to ask for it!
The operator,
关于MySQL主从复制的数据同步延迟问题
技能大赛训练题:登录安全加固
Detailed explanation of network protocols and related technologies
The use of C# control CheckBox
C#高级--委托
LeetCode·304竞赛·6132·使数组中所有元素都等于零·模拟·哈希
Linux bash: redis-server: 未找到命令
ADS与C#通信
随机推荐
golang-gin-优雅重启
AI cocoa AI frontier introduction (7.31)
技能大赛训练题:交换机的远程管理
3.爬虫之Scrapy框架1安装与使用
Grab the tail of gold, silver and silver, unlock the programmer interview "Artifact of Brushing Questions"
Use of C# Assembly
技能大赛训练题:ftp 服务攻防与加固
技能大赛训练题: 子网掩码划分案例
技能大赛训练题:MS15_034漏洞验证与安全加固
尚硅谷-JVM-内存和垃圾回收篇(P1~P203)
对数字化时代的企业来说,数据治理难做,但应该去做
PartImageNet物体部件分割(Semantic Part Segmentation)数据集介绍
Spark Learning: Add Custom Optimization Rules for Spark Sql
ECCV 2022 | Robotic Interaction Perception and Object Manipulation
LeetCode只出现一次的数字
Sliding window method to segment data
The batch size does not have to be a power of 2!The latest conclusions of senior ML scholars
Unity学习笔记 关于AVPro视频跳转功能(Seeking)的说明
网络层重点协议——IP协议
VU 非父子组件通信