当前位置:网站首页>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边栏推荐
猜你喜欢

【代码源】每日一题 国家铁路

~2 ccf 2022-03-1 未初始化警告

那天帮妹纸装了个数据库。。。就又帮她整理了篇快捷键

What are stand-alone, cluster and distributed?

Unable to start debugging on the web server, the web server failed to find the requested resource

作业7.19 顺序表

Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker
![[GKCTF 2021]easynode](/img/f0/1daf6f83fea66fdefd55608cbddac6.png)
[GKCTF 2021]easynode

Publish Yum private server using nexus3 (offline intranet)

How to write Android switching interface with kotlin
随机推荐
Go foundation 2
C language and SQL Server database technology
Click to hide the column in wechat applet, and then click to show it
Week小结
梦想启航(第一篇博客)
MySQL takes the query result as the data updated by update, and concatenates it after the original field data (Lej)
那天帮妹纸装了个数据库。。。就又帮她整理了篇快捷键
Idea hot deployment
OverTheWire-Bandit
神经网络方法——美国波士顿房价(回归问题)
单例模式(Singleton)
¥1-1 SWUST oj 941: 有序顺序表的合并操作的实现
main函数的一些操作
Notes on in-depth analysis of C language 2
[selected] from simple to deep, you will understand MQ principles and application scenarios
cell的定义
MongoDB数据库文件的读与写
Swagger2 shows that there is a problem with the get interface, which can be solved with annotations
[GPLT] 2022 大众情人(floyd)
What is the difference between mongodb and redis