当前位置:网站首页>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
边栏推荐
- HAVE FUN | “飞船计划”活动最新进展
- Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
- 基于ensp防火墙双击热备二层网络规划与设计
- Compress JS code with terser
- MySQL
- Redis入门完整教程:问题定位与优化
- Redis入门完整教程:复制配置
- Planning and design of double click hot standby layer 2 network based on ENSP firewall
- ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
- NuScenes数据集关于Radar数据的统计
猜你喜欢

Have fun | latest progress of "spacecraft program" activities

Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B

Read fast RCNN in one article

Statistics of radar data in nuscenes data set

Redis入门完整教程:复制配置

【2022国赛模拟】多边形——计算几何、二分答案、倍增

Mmdetection3d loads millimeter wave radar data

Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)

Hash table and full comments

Planning and design of double click hot standby layer 2 network based on ENSP firewall
随机推荐
进程管理基础
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
MySQL
一本揭秘字节万台节点ClickHouse背后技术实现的白皮书来了!
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?
6-6漏洞利用-SSH安全防御
Web3's need for law
INS/GPS组合导航类型简介
Pioneer of Web3: virtual human
数论 --- 快速幂、快速幂求逆元
用全连接+softmax对图片的feature进行分类
PCL 常用拟合模型及使用方法
Summary of basic debugging steps of S120 driver
Difference and the difference between array and array structure and linked list
C language exercises_ one
导数、偏导数、方向导数
Introduction to ins/gps integrated navigation type
差异与阵列和阵列结构和链表的区别
widerperson数据集转化为YOLO格式
MetaForce原力元宇宙佛萨奇2.0智能合约系统开发(源码部署)