当前位置:网站首页>[Ubuntu redis installation]
[Ubuntu redis installation]
2022-06-30 09:42:00 【Shallow look】
One 、 install
1 download
Official website download address :https://redis.io/download/
wget https://download.redis.io/releases/redis-6.2.7.tar.gz
2 decompression
tar -zxvf redis-6.2.7.tar.gz
3 compile
Enter the file decompression path , namely redis-6.2.7 Execute under directory make Compile .
4 install
Get into redis Under the src route , perform make install Just install it
Two 、 To configure
2.1 start-up
src Under the table of contents redis-server start-up
./redis-server
Connect redis
./redis-cli
2.2 redis The configuration file (redis.conf)
redis.conf The file in redis Under the root directory of .
vim redis.conf
daemonize yes # Is it running in the background , Default no
After updating the configuration file , To restart redis service , And execute the configuration file , here redis Services can run in the background
src/redis-server ./redis.conf
2.3 Set the password
You can change redis.conf In the document requirepass Configuration item
It can also be in redis-cli Configure the password in the connection service :
The password set at this time is 123456.
2.4 Allow remote connections
Only need redis.conf Comment out... In the configuration file bind And turn off the protection mode .

Then turn it off in the process redis, Restart it , Allow remote connections at this time .
Redis6 Study ( Four ):Linux The next command is Redis Set the password
3、 ... and 、 Use
Redis note - The basic chapter ( Dark horse video tutorial )
边栏推荐
- Deep Learning with Pytorch- A 60 Minute Blitz
- JVM family
- I once met a girl whom I most wanted to take care of all my life. Later... No later
- 【新书推荐】Deno Web Development
- About the smart platform solution for business hall Terminal Desktop System
- CentOS MySQL installation details
- Applet learning path 2 - event binding
- Self service terminal handwritten Chinese character recognition input method library tjfink introduction
- Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5
- 11.自定义hooks
猜你喜欢
随机推荐
ReturnJson,让返回数据多一些自定义数据或类名
Summary of Android knowledge points and common interview questions
Research on lg1403 divisor
Differences between the notify(), notifyall(), notifydatasetchanged(), notifydatasetinvalidated() methods in the adapter
AutoUpdater. Net client custom update file
NTP of Prometheus monitoring_ exporter
Idea setting automatic package Guide
7. know JNI and NDK
Niuke rearrangement rule taking method
ES6 learning path (IV) operator extension
布隆过滤器
Design of mfc+mysql document data management system based on VS2010
云技能提升好伙伴,亚马逊云师兄今天正式营业
Recommend a very easy-to-use network communication framework HP socket
Deep Learning with Pytorch- A 60 Minute Blitz
Splice and slice functions of JS
Demo of guavacache
utlis 内存池 对象池
JVM tuning tool commands (notes)
ABAP-时间函数









