当前位置:网站首页>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
边栏推荐
- Font spider Teaching -- ttf/otf font file compression
- MySQL table mechanism
- LabVIEW或MAX下的VISA测试面板中串口无法工作
- Leetcode 501: mode in binary search tree
- 云图说|每个成功的业务系统都离不开APIG的保驾护航
- 1. open the R program, and use the apply function to calculate the sum of 1 to 12 in the sequence of every 3 numbers. That is, calculate 1+4+7+10=? 2+5+8+11=?, 3+6+9+12=?
- LabVIEW获取IMAQ Get Last Event坐标
- Is it safe to open an account in Shanghai Stock Exchange?
- Why many new websites are not included by search engines
- easyrecovery15操作简单方便的数据恢复工具
猜你喜欢

ILRuntime热更框架 安装以及断点调试
![[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing](/img/d5/d544ab0c14ba22946219feafdc3392.png)
[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing

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

easyrecovery15操作简单方便的数据恢复工具

Expandable to Max – MCU and MPU development, using the same license

Data and information resource sharing platform (VIII)

LabVIEW open other exe programs

【数学】【连续介质力学】流体力学中的对称张量、应变张量和应力张量

LabVIEW使用MathScript Node或MATLAB脚本时出现错误1046

iframe框架自适应大小/全屏显示网页框架的方法
随机推荐
LabVIEW change the shape or color of point ROI overlay
Interface test learning notes
[论文分享] PATA: Fuzzing with Path Aware Taint Analysis
关于嵌入式音频开发需要注意的两个方面
Exception 0xc00000005 code occurred when LabVIEW called DLL
Ilruntime hotfix framework installation and breakpoint debugging
Build TAR model using beersales data set in TSA package
Yuntu says that every successful business system cannot be separated from apig
R 语言绘制二维正态分布的密度曲面图;
LabVIEW pictures look bright or dark after being cast from 16 bits to 8 bits
1. open the R program, and use the apply function to calculate the sum of 1 to 12 in the sequence of every 3 numbers. That is, calculate 1+4+7+10=? 2+5+8+11=?, 3+6+9+12=?
云图说|每个成功的业务系统都离不开APIG的保驾护航
Two debugging techniques in embedded software development
可扩展到Max–MCU和MPU开发,使用相同的许可证
LabVIEW获取IMAQ Get Last Event坐标
LabVIEW用VISA Read函数来读取USB中断数据
LabVIEW改变Point ROI Overlay的形状或颜色
300 questions on behalf of the first lecture on determinant
30 | 怎么重设消费者组位移?
Creating dynamic two-dimensional array with C language