当前位置:网站首页>[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 )
边栏推荐
- Abstract classes and interfaces
- 5. Messager framework and imessager interface
- 八大排序(一)
- Summary of Android knowledge points and common interview questions
- About the smart platform solution for business hall Terminal Desktop System
- 目标检测yolov5开源项目调试
- Design of mfc+mysql document data management system based on VS2010
- JVM memory common parameter configuration set
- Initialize static resource demo
- Express file upload
猜你喜欢
随机推荐
机器学习笔记 九:预测模型优化(防止欠拟合和过拟合问题发生)
JVM notes (III): analysis of JVM object creation and memory allocation mechanism
Niuke rearrangement rule taking method
Script summary
Niuke walks on the tree (ingenious application of parallel search)
Use V-IF with V-for
Abstract classes and interfaces
单片机 MCU 固件打包脚本软件
1, 基本配置
Startup of MySQL green edition in Windows system
DDD interview
桂林 穩健醫療收購桂林乳膠100%股權 填補乳膠產品線空白
抽象类和接口
Initialize static resource demo
Couldn't load this key (openssh ssh-2 private key (old PEM format))
Pipe pipe --namedpipe and anonymouspipe
Distributed session
Golang magic code
JWT expiration processing - single token scheme
Terminal -- Zsh of terminal three swordsmen








