当前位置:网站首页>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
边栏推荐
- What management points should be paid attention to when implementing MES management system
- Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
- CDB PDB 用户权限管理
- Redis入门完整教程:客户端常见异常
- 导数、偏导数、方向导数
- 安全巡检的工作
- Redis入門完整教程:問題定比特與優化
- Summary of basic debugging steps of S120 driver
- unity 自定义webgl打包模板
- 服装企业部署MES管理系统的五个原因
猜你喜欢
Google Earth engine (GEE) -- 1975 dataset of Landsat global land survey
Classify the features of pictures with full connection +softmax
Redis入门完整教程:AOF持久化
Wireshark installation
基于ensp防火墙双击热备二层网络规划与设计
Apifox, is your API interface document rolled up like this?
Redis入门完整教程:客户端管理
Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (time synchronization part)
Redis getting started complete tutorial: client management
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
随机推荐
Contribution of Writing Series
Convert widerperson dataset to Yolo format
数论 --- 快速幂、快速幂求逆元
进程管理基础
Code debugging core step memory
Cloud Mail . NET Edition
服装企业部署MES管理系统的五个原因
测试优惠券要怎么写测试用例?
6-6 vulnerability exploitation SSH security defense
Dotconnect for DB2 Data Provider
Redis入门完整教程:复制配置
Summary of basic debugging steps of S120 driver
Fundamentals of process management
Leetcode:minimum_ depth_ of_ binary_ Tree solutions
Redis入门完整教程:客户端常见异常
Summary of research status of inertial navigation calibration at home and abroad (abridged version)
Kysl Haikang camera 8247 H9 ISAPI test
数字滚动增加效果
C#/VB. Net to delete watermarks in word documents
MySQL - common functions - string functions