当前位置:网站首页>Redis installation and common problem solving based on centeros7 (explanation with pictures)
Redis installation and common problem solving based on centeros7 (explanation with pictures)
2022-06-10 23:48:00 【Xiao Zhong wants to learn!!!】
be based on CenterOS7 install Redis Common problems and Solutions
The two installation problems created are shown below
1、 Download the installation package and install
Official download address :https://redis.io/download/
Directly in win Download the extracted package from the platform, upload it to the virtual machine, and then install it
Directly click the version to download the compressed file
Perform remote download and installation through commands on the virtual machine redis Installation package
Remote installation address ( Choose your own version )
wget http://download.redis.io/releases/redis-?.?.?.tar.gzIf you are prompted
wgetIf the command is not found, execute the following code to install the plug-in , When the installation is completed, you will be prompted , Allow the above download address againyum -y install wgetAfter downloading, you can use
llCommand to check whether the files in the current directory exist , Here is win Download the uploaded , Then extract the fileNavigate to the uploaded folder , Then decompress redis Compressed package
tar –xvf file name .tar.gzAfter extracting the file , Again cd Go to the extracted file to view the file directory , Use
llCatalog![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-6G0zeAE0-1654870578779)(images/image-20220610211618336.png)]](/img/cb/a5fc73f9789082590b51c493175211.png)
cat Makefile // You can view the installation location as follows # Top level makefile, the real shit is at src/Makefile default: all .DEFAULT: cd src && $(MAKE) [email protected] install: cd src && $(MAKE) [email protected] .PHONY: installCompile and install through the following statement ( Compilation takes time and patience , If an installation error occurs, follow the steps below )
make installIf you succeed , Use cd Command to enter the installation directory src in , And then through
llCommand to see if the installation is successful , The appearance of the following represents success![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-c2LLk89B-1654870578780)(images/image-20220610212021820.png)]](/img/9d/99bbd3ef10c622e7abd22c4d4eef64.png)
Please look down at the installation error
The first mistake is the one mentioned above
-bash: wget: Command not found, have already been solvedThe second compilation error
gcc: Command not found, Execute the following statement to solve the problemyum -y install gcc automake autoconf libtool make![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-WlxMmi2W-1654870578780)(images/image-20220610212509954.png)]](/img/bd/d419af3d351e3e2b71781f5861d8f4.png)
The third compilation error
zmalloc.h:50:31: Fatal error :jemalloc/jemalloc.h: There is no file or directory, Execute the following statement to solve the problem![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-EeOIoN7r-1654870578781)(images/image-20220610212727871.png)]](/img/99/62de5b845664ba1ca3f5088f44a8f7.png)
Be careful : The following statements need to be executed under the unzipped package file ( Equal to compile , It's going to take some time )
make MALLOC=libc![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-9LoxjKH2-1654870578782)(images/image-20220610213013211.png)]](/img/f9/e13dc79799f6f6e47913ba4db6d5d0.png)
start-up src The directory
redis-serverservice![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-dKyicw2t-1654870578782)(images/image-20220610213130018.png)]](/img/19/5d804f2f376af356c338fdcfad6a82.png)
Because the current page is used to start redis The server , So I can't execute the command , Need to copy a label
Enter the installation directory , Then start
redis-cli, You can do it![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-xpJeiv7o-1654870578783)(images/image-20220610213309106.png)]](/img/d3/8520dbf94c6e75414f42d043e557cd.png)
2、 modify Redis port
Use the following command to modify the port to start multiple redis service
redis-server --port 6380
You also need to specify the port when starting the client
redis-cli -p 6380
边栏推荐
- OSS stores and exports related content
- MySQL学习之子查询
- flutter 如何去掉listview顶部空白的问题
- ILRuntime热更框架 安装以及断点调试
- Introduction to Wireshark capturing RTP load TS stream (UDP multicast)
- Two debugging techniques in embedded software development
- Dell R730 raid5 安装Server 2016(解决磁盘大于2T)
- 执行Oracle的SQL语句报错【ORA-00904: “CREATETIME“: 标识符无效】、【ORA-00913: 值过多】解决办法
- Developers changing the world - Yao Guang teenagers playing Tetris
- 【LaTex】latex VS Code snippets(代码片段)
猜你喜欢

宝塔计划任务Shell脚本定时删除某各目录下所有文件【记录】

LabVIEW change the shape or color of point ROI overlay

Interface test learning notes

R 语言绘制二维正态分布的密度曲面图;

The time (in minutes) required for a group of workers to cooperate to complete the assembly process of a part are as follows:
![[paper sharing] pata: fuzzing with path aware Taint Analysis](/img/f6/627344c5da588afcf70302ef29d134.png)
[paper sharing] pata: fuzzing with path aware Taint Analysis

LabVIEW获取IMAQ Get Last Event坐标

It is known that the transverse grain pressure resistance of a certain wood obeys n (x, D2). Now ten specimens are tested for transverse grain pressure resistance, and the data are as follows: (unit:

LabVIEW获取Clamp函数找到的所有点的信息

改变世界的开发者丨玩转“俄罗斯方块”的瑶光少年
随机推荐
Solutions to the error reported by executing Oracle SQL statement [ora-00904: "createtime": invalid identifier] and [ora-00913: too many values]
Interview questions - written examination
考研英语词汇 unit1
LabVIEW用高速数据流盘
Before we learn about high-performance computing, let's take a look at its history
OpenVP*整合ldap认证
【LaTex】latex VS Code snippets(代码片段)
LabVIEW获取Clamp函数找到的所有点的信息
C语言创建动态二维数组
Postgraduate entrance examination English vocabulary unit1
MySQL学习之子查询
What Fiddler does for testing
宁愿“大小周”、每天只写 200 行代码、月薪 8k-17k 人群再涨
[paper sharing] pata: fuzzing with path aware Taint Analysis
VS 番茄助手添加头注释 以及使用方式
LabVIEW编程规范
Deepin20菜单启动选项后自检到iwlwifi停机
LabVIEW错误“内存已满 - 应用程序停止在节点”
Is it safe to open an account for tongdaxin stock? How to open an account?
R 语言绘制二维正态分布的密度曲面图;