当前位置:网站首页>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 面
- 技能大赛训练题: 子网掩码划分案例
- Productivity Tools and Plugins
- Istio微服务治理网格的全方面可视化监控(微服务架构展示、资源监控、流量监控、链路监控)
- The pre-sale of the new Hyundai Paristi is open, and safety and comfort are not lost
- The Selenium IDE of the Selenium test automation
- A detailed explanation of the usage of Async and Await in C#
- Invalid bound statement (not found)出现的原因和解决方法
- Even if the image is missing in a large area, it can also be repaired realistically. The new model CM-GAN takes into account the global structure and texture details
猜你喜欢

Introduction to the PartImageNet Semantic Part Segmentation dataset

For enterprises in the digital age, data governance is difficult, but it should be done

The use of C# control CheckBox

DELL SC compellent 康贝存储系统怎么抓取配置信息

深度剖析 Apache EventMesh 云原生分布式事件驱动架构

AI cocoa AI frontier introduction (7.31)

ECCV 2022 | 机器人的交互感知与物体操作

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

golang-gin - graceful restart

CLion用于STM32开发
随机推荐
战略进攻能力的重要性,要远远高于战略防守能力
The Selenium IDE of the Selenium test automation
LeetCode·304竞赛·6132·使数组中所有元素都等于零·模拟·哈希
图像大面积缺失,也能逼真修复,新模型CM-GAN兼顾全局结构和纹理细节
C#Assembly的使用
hyperf的启动源码分析(二)——请求如何到达控制器
C#中+=的用法
拥塞控制,CDN,端到端
Unity学习笔记 关于AVPro视频跳转功能(Seeking)的说明
AI cocoa AI frontier introduction (7.31)
SetoolKit使用指南
1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点
百度网盘安装在c盘显示系统权限限制的解决方法
ADS communicate with c #
C#控件ListView用法
ICML2022 | Fully Granular Self-Semantic Propagation for Self-Supervised Graph Representation Learning
A detailed explanation of the usage of Async and Await in C#
The use of C# control CheckBox
C# List Usage List Introduction
[Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)