当前位置:网站首页>[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 )
边栏推荐
- Flutter的特别之处在哪里
- Abstract classes and interfaces
- Self service terminal handwritten Chinese character recognition input method library tjfink introduction
- Linear-gradient()
- Idea shortcut key settings
- Express file upload
- Redis docker 主从模式与哨兵sentinel
- Express get request
- Why won't gold depreciate???
- ES6 learning path (IV) operator extension
猜你喜欢
Electron, which can wrap web page programs into desktop applications
JVM tuning tool introduction and constant pool explanation
9.JNI_ Necessary optimization design
八大排序(二)
布隆过滤器
Terminal -- Zsh of terminal three swordsmen
Express の post request
Couldn't load this key (openssh ssh-2 private key (old PEM format))
MySQL优化
Notes on masking and padding in tensorflow keras
随机推荐
Tclistener server and tcpclient client use -- socket listening server and socketclient use
Differences between the notify(), notifyall(), notifydatasetchanged(), notifydatasetinvalidated() methods in the adapter
Deep Learning with Pytorch- A 60 Minute Blitz
Numpy (data type)
prometheus 监控之 ntp_exporter
桂林 穩健醫療收購桂林乳膠100%股權 填補乳膠產品線空白
Using OpenCV Net for image restoration
float
Experience of an acmer
Distributed session
Configuring MySQL for error reporting
Idea setting automatic package Guide
11. customize hooks
直播带货源码开发中,如何降低直播中的延迟?
7. know JNI and NDK
12. problem set: process, thread and JNI architecture
Train an image classifier demo in pytorch [learning notes]
Pytorch graduate warm LR installation
JVM tuning tool introduction and constant pool explanation
Redis docker master-slave mode and sentinel