当前位置:网站首页>Learn redis Linux and install redis
Learn redis Linux and install redis
2022-07-25 09:33:00 【yu-yuan】
One . redis What is it?
Redis It's completely open source , comply with BSD agreement , Is a high-performance key-value database , You can store strings , Hash structure , Linked list , aggregate
Two . redis and memcached difference
1. redis Can be used for storage (storge), and mamcached Is used for caching (cache)
This feature is mainly because it has ' Persistence ' The function of
2 . The stored data has structure , about memcached Come on , Stored data , Only 1 Types --“ character string ”
and redis You can store the string , Linked list , Hash structure , aggregate , Ordered set
install
// First, download it from the official website Redis The package Download | Redis // decompression redis Compressed package tar zxvf redis-****.tar.gz // Then use it directly make make PREFIX=/usr/local/redis install // Get into /usr/local/redis

redis Performance testing tools redis-benchmark
Check aof Logging tools redis-check-aof
Check rdb Logging tools redis-check-rdb
Client for connection redis-cli
redis Service process redis-server
And then make a copy of redis.conf To the service directory
cp /www/server/redis-****.tar.gz /usr/local/redis in // Then start redis ./bin/redis-server ./redis.conf // start-up redis service ./bin/redis-cli
But at this time redis It needs to be running in the background all the time , We can modify redis.conf The process will not occupy the session box
// Get into redis Configuration file for
vim redis.conf
// modify daemonize no by yes边栏推荐
猜你喜欢

Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker

【cf】Round 128 C. Binary String

uni-app如何获取位置信息(经纬度)

The jar package has been launched on Alibaba cloud server and the security group has been opened, but postman still can't run. What should we do

作业7.15 shell脚本

作业7.21 约瑟夫环问题与进制转换

How can technologists start their personal brand? Exclusive teaching of top five KOLs

SSM框架整合,简单案例

MongoDB数据库文件的读与写

STM32+HC05串口蓝牙设计简易的蓝牙音箱
随机推荐
[HCTF 2018]admin
@3-1 CCF 2020-09-1 称检测点查询
Redis set 结构命令
Data preprocessing
用kotlin怎么写Android切换界面
Reverse Integer
TCP network application development process
Go foundation 3
Install MySQL in Ubuntu and create new users
Data control language (DCL)
学习 Redis linux 安装Redis
Floating point number exploration
Two Sum
~2 ccf 2022-03-1 未初始化警告
粗柳簸箕细柳斗,谁嫌爬虫男人丑 之 异步协程半秒扒光一本小说
[GYCTF2020]Node Game
Data query language (DQL)
一文搞懂try、catch、finally(包含return)执行流程(全网最详细解析)
作业7.21 约瑟夫环问题与进制转换
What is anemia model and congestion model?