当前位置:网站首页>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边栏推荐
- Database operation language (DML)
- Two Sum
- 在Ubuntu中安装MySQL并创建新用户
- 语音聊天app源码-钠斯网络源码出品
- 正奇边形可划分成多少区域
- MySQL appends a string to the string of a field in the table [easy to understand]
- Browser access to swagger failed with error err_ UNSAFE_ PORT
- The difference between abstract classes and interfaces (the most detailed)
- 作业7.21 约瑟夫环问题与进制转换
- Go foundation 1
猜你喜欢

¥1-1 SWUST oj 941: 有序顺序表的合并操作的实现

Data preprocessing

cell的定义
![[HCTF 2018]admin](/img/d7/f0155c72d3fbddf0a8c1796a179a0f.png)
[HCTF 2018]admin

DVWA练习一 暴力破解

数据控制语言(DCL)

变量名可以用中文?直接把人干蒙了

最短路问题 Bellman-Ford(单源最短路径)(图解)
![[GKCTF 2021]easynode](/img/f0/1daf6f83fea66fdefd55608cbddac6.png)
[GKCTF 2021]easynode

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
随机推荐
【代码源】每日一题 树
粗柳簸箕细柳斗,谁嫌爬虫男人丑 之 异步协程半秒扒光一本小说
Install MySQL in Ubuntu and create new users
Neural network method -- Boston house price (regression problem)
Flask SSTI注入学习
[De1CTF 2019]SSRF Me
变量名可以用中文?直接把人干蒙了
【代码源】每日一题 - 排队
Go基础1
语音聊天app源码-钠斯网络源码出品
Go基础4
数据控制语言(DCL)
Basic network knowledge
<T>泛型方法演示
初始Flask以及简单地上手应用
对象数据如何转化成数组
@3-1 CCF 2020-09-1 称检测点查询
Front page printing
[WSN communication] optimize HWSN energy-saving clustering protocol based on MATLAB biogeography [including Matlab source code, 1989]
如何将Jar包部署到服务器,注:启动命令有无nohup有很大关系