当前位置:网站首页>Install redis from zero
Install redis from zero
2022-07-07 02:50:00 【skyline_ wx】
Install from scratch Redis
install
- Get into Redis Official website https://redis.io/
- Click on Get Start, Enter the boot page
- Click on Install Redis from Source
- If you want to install the latest stable version , Then directly execute the following commands
wget https://download.redis.io/redis-stable.tar.gz
- If you want to install a specific version , Then you can check the download links of all stable versions here https://github.com/redis/redis-hashes
- I have installed Redis 6.x Last version of
- After the download , Execute the unzip command
tar -xzvf redis-6.2.7.tar.gz
- Switch to redis-6.2.7 Next , perform
make
- If an error is reported , It may be gcc No installation
- install gcc
yum install gcc
- After installation , Re execution
make
, If the following error occurs , Change tomake MALLOC=libc
- If
make
success , Then we should be able to src In the directory redis-server and redis-cli These two documents - Only this and nothing more , We can already use redis-server To start up rRedis 了 . But if you want to put Redis The installation to
/usr/local/bin
Next , That still needs to be implementedmake install
- Try using the command
redis-server
start-up Redis, After execution , Seeing this page means that the startup is successful - Use
ctrl+c
To stop Redis
Redis Common configuration modification
Set up Redis Allow outside ip visit . Comment out
bind 127.0.0.1 -::1
Or set upbind * -::*
Set the password . stay
requirepass
Just write the password you need on the backSet up running in the background . take
daemonize
Set to yesStart with a file redis.
redis-server redis.conf
Using tool links Redis
If the connection fails , You can turn off the firewall and try again
systemctl stop firewalld.service
stop it Redis
redis-cli -h 127.0.0.1 -p 6379 -a foobared shutdown
边栏推荐
- 牛客编程题--必刷101之双指针篇
- Cloud Mail . NET Edition
- Niuke programming problem -- double pointer of 101 must be brushed
- Static proxy of proxy mode
- Redis入门完整教程:问题定位与优化
- Use of fiddler
- Redis入门完整教程:复制原理
- Read fast RCNN in one article
- The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
- QPushButton-》函数精解
猜你喜欢
What are the applications and benefits of MES management system
unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
一文读懂Faster RCNN
实施MES管理系统时,哪些管理点是需要注意的
Redis入门完整教程:客户端案例分析
Cloud Mail .NET Edition
Unity使用MaskableGraphic画一条带箭头的线
MATLB|具有储能的经济调度及机会约束和鲁棒优化
MySQL提升大量数据查询效率的优化神器
The 8 element positioning methods of selenium that you have to know are simple and practical
随机推荐
Code line breaking problem of untiy text box
Summary of basic debugging steps of S120 driver
Lombok makes the pit of ⽤ @data and @builder at the same time
CDB PDB user rights management
6-6漏洞利用-SSH安全防御
unity webgl自适应网页尺寸
Contribution of Writing Series
代码调试core-踩内存
Metaforce force meta universe fossage 2.0 smart contract system development (source code deployment)
Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
Redis入门完整教程:客户端常见异常
一文读懂Faster RCNN
基于ensp防火墙双击热备二层网络规划与设计
Number theory --- fast power, fast power inverse element
【2022国赛模拟】多边形——计算几何、二分答案、倍增
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
Redis getting started complete tutorial: common exceptions on the client
MySQL提升大量数据查询效率的优化神器
Apifox,你的API接口文档卷成这样了吗?
PCL 常用拟合模型及使用方法