当前位置:网站首页>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
边栏推荐
- Unity使用MaskableGraphic画一条带箭头的线
- QT common Concepts-1
- MySQL --- 常用函数 - 字符串函数
- Redis入門完整教程:問題定比特與優化
- Huitong programming introductory course - 2A breakthrough
- How to write test cases for test coupons?
- 差异与阵列和阵列结构和链表的区别
- PSINS中19维组合导航模块sinsgps详解(时间同步部分)
- ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
- CSDN 夏令营课程 项目分析
猜你喜欢
Redis入门完整教程:复制原理
Redis入门完整教程:RDB持久化
KYSL 海康摄像头 8247 h9 isapi测试
ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
从零安装Redis
Statistics of radar data in nuscenes data set
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
牛客编程题--必刷101之双指针篇
Cloud Mail .NET Edition
What are the characteristics of the operation and maintenance management system
随机推荐
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
HAVE FUN | “飞船计划”活动最新进展
STM32 project -- Topic sharing (part)
Five reasons for clothing enterprises to deploy MES management system
Redis入门完整教程:复制原理
wzoi 1~200
Safety delivery engineer
Planning and design of double click hot standby layer 2 network based on ENSP firewall
慧通编程入门课程 - 2A闯关
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
Application analysis of face recognition
Unity webgl adaptive web page size
Code line breaking problem of untiy text box
安全交付工程师
Wireshark installation
Linear list --- circular linked list
Redis入門完整教程:問題定比特與優化
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
S120驱动器基本调试步骤总结