当前位置:网站首页>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;
边栏推荐
- C#使用NumericUpDown控件
- 报错:npm ERR code EPERM
- Four ways to clear the float and its principle understanding
- Install the latest pytorch gpu version
- go使用makefile脚本编译应用
- Spark学习:为Spark Sql添加自定义优化规则
- An article makes it clear!What is the difference and connection between database and data warehouse?
- ADS与C#通信
- 深度剖析 Apache EventMesh 云原生分布式事件驱动架构
- C#Assembly的使用
猜你喜欢

关于MySQL主从复制的数据同步延迟问题

CLion用于STM32开发

Introduction to the PartImageNet Semantic Part Segmentation dataset

STM32的CAN过滤器

操作符详解

Spark学习:为Spark Sql添加自定义优化规则

How to quickly split and merge cell data in Excel

ICML2022 | Fully Granular Self-Semantic Propagation for Self-Supervised Graph Representation Learning

MATLAB | 我也做了一套绘图配色可视化模板

LeetCode·每日一题·1161.最大层内元素和·层次遍历
随机推荐
一篇文章讲清楚!数据库和数据仓库到底有什么区别和联系?
What should I do if selenium is reversed?
C# List Usage List Introduction
Six Stones Programming: No matter which function you think is useless, people who can use it will not be able to leave, so at least 99%
leetcode:2032. Values that appear in at least two arrays
IDEA找不到Database解决方法
报错IDEA Terminated with exit code 1
战略进攻能力的重要性,要远远高于战略防守能力
Open Inventor 10.12 重大改进--和谐版
C#使用ComboBox控件
Samba 远程命令执行漏洞(CVE-2017-7494)
Unity study notes Description of AVPro video jump function (Seeking)
How to quickly split and merge cell data in Excel
All-round visual monitoring of the Istio microservice governance grid (microservice architecture display, resource monitoring, traffic monitoring, link monitoring)
Error IDEA Terminated with exit code 1
自制的数据库安全攻防题,相关靶机自己制作
六石编程学:不论是哪个功能,你觉得再没用,会用的人都离不了,所以至少要做到99%
Text similarity calculation (Chinese and English) detailed explanation of actual combat
numpy矩阵和向量的保存与加载,以及使用保存的向量进行相似度计算
基于去噪自编码器的故障隔离与识别方法