当前位置:网站首页>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
makesuccess , 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/binNext , That still needs to be implementedmake install
- Try using the command
redis-serverstart-up Redis, After execution , Seeing this page means that the startup is successful
- Use
ctrl+cTo stop Redis
Redis Common configuration modification
Set up Redis Allow outside ip visit . Comment out
bind 127.0.0.1 -::1Or set upbind * -::*
Set the password . stay
requirepassJust write the password you need on the back
Set up running in the background . take
daemonizeSet to yes
Start 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
边栏推荐
- unity webgl自适应网页尺寸
- [software test] the most complete interview questions and answers. I'm familiar with the full text. If I don't win the offer, I'll lose
- 安全交付工程师
- PSINS中19维组合导航模块sinsgps详解(初始赋值部分)
- 你不可不知道的Selenium 8种元素定位方法,简单且实用
- Kubernetes源码分析(二)----资源Resource
- PSINS中19维组合导航模块sinsgps详解(滤波部分)
- Redis入门完整教程:RDB持久化
- 普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
- Web3's need for law
猜你喜欢

Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集

How to write test cases for test coupons?

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?

Dotconnect for DB2 Data Provider

The 8 element positioning methods of selenium that you have to know are simple and practical

Cloud Mail .NET Edition

AWS learning notes (I)

Cloud Mail . NET Edition

Redis入門完整教程:問題定比特與優化

普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
随机推荐
CSDN 夏令营课程 项目分析
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
Redis入门完整教程:复制拓扑
Unity使用MaskableGraphic画一条带箭头的线
Andrews - multimedia programming
unity 自定义webgl打包模板
慧通编程入门课程 - 2A闯关
Django database (SQLite) basic introductory tutorial
Kubernetes源码分析(二)----资源Resource
AWS learning notes (I)
Here comes a white paper to uncover the technology behind Clickhouse, a node with 10000 bytes!
Digital scrolling increases effect
MMDetection3D加载毫米波雷达数据
INS/GPS组合导航类型简介
AWS学习笔记(一)
How to design interface test cases? Teach you a few tips to draft easily
1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l
用全连接+softmax对图片的feature进行分类
Static proxy of proxy mode
【2022国赛模拟】多边形——计算几何、二分答案、倍增