当前位置:网站首页>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
边栏推荐
- 基于ensp防火墙双击热备二层网络规划与设计
- MySQL提升大量数据查询效率的优化神器
- MetaForce原力元宇宙佛萨奇2.0智能合约系统开发(源码部署)
- 用全连接+softmax对图片的feature进行分类
- Redis入门完整教程:客户端常见异常
- Redis入门完整教程:复制原理
- CSDN summer camp course project analysis
- Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
- HAVE FUN | “飞船计划”活动最新进展
- PCL 常用拟合模型及使用方法
猜你喜欢
Google Earth Engine(GEE)——Landsat 全球土地调查 1975年数据集
Derivative, partial derivative, directional derivative
What are the characteristics of the operation and maintenance management system
你不可不知道的Selenium 8种元素定位方法,简单且实用
Application analysis of face recognition
Pioneer of Web3: virtual human
左程云 递归+动态规划
Huitong programming introductory course - 2A breakthrough
测试优惠券要怎么写测试用例?
Summary of basic debugging steps of S120 driver
随机推荐
Software testing -- common assertions of JMeter interface testing
Redis入门完整教程:复制配置
Wireshark installation
从零安装Redis
Unity webgl adaptive web page size
Digital scrolling increases effect
实施MES管理系统时,哪些管理点是需要注意的
Here comes a white paper to uncover the technology behind Clickhouse, a node with 10000 bytes!
安全巡检的工作
Code debugging core step memory
What management points should be paid attention to when implementing MES management system
C language exercises_ one
Go swagger use
[leetcode]Search for a Range
Unity custom webgl packaging template
Niuke programming problem -- double pointer of 101 must be brushed
Apifox, is your API interface document rolled up like this?
AWS learning notes (I)
MetaForce原力元宇宙佛萨奇2.0智能合约系统开发(源码部署)
Cloud Mail . NET Edition