当前位置:网站首页>【Ubuntu-redis安装】
【Ubuntu-redis安装】
2022-06-30 09:32:00 【浅浅望】
一、安装
1 下载
官网下载地址:https://redis.io/download/
wget https://download.redis.io/releases/redis-6.2.7.tar.gz
2 解压
tar -zxvf redis-6.2.7.tar.gz
3 编译
进入文件解压路径下,即redis-6.2.7目录下执行make进行编译。
4 安装
进入redis下的src路径,执行make install进行安装即可
二、配置
2.1 启动
src 目录下 redis-server启动
./redis-server
连接redis
./redis-cli
2.2 redis配置文件(redis.conf)
redis.conf文件在redis的根目录下。
vim redis.conf
daemonize yes #是否后台运行,默认no
更新完配置文件后,要重启redis服务,并执行配置文件,此时redis服务可在后台运行
src/redis-server ./redis.conf
2.3 设置密码
可以更改redis.conf文件中的requirepass配置项
也可以在redis-cli连接服务中配置密码:
此时设置的密码为123456。
2.4 允许远程连接
只需要在redis.conf配置文件中注释掉bind并关闭保护模式即可。

然后在进程中关掉redis,重新启动即可 ,此时允许远程连接。
Redis6学习(四):Linux下使用命令为Redis设置密码
三、使用
边栏推荐
- Solution to the eighth training competition of 2020 Provincial Games
- MySQL-- Entity Framework Code First(EF Code First)
- Splice and slice functions of JS
- Pass anonymous function to simplification principle
- Summary of Android knowledge points and common interview questions
- Reading notes of "Introduction to deep learning: pytoch"
- What are the SQL add / delete / modify queries?
- Baidu map JS browsing terminal
- Talk about how the kotlin process started?
- Acquisition de 100% des actions de Guilin latex par Guilin Robust Medical pour combler le vide de la gamme de produits Latex
猜你喜欢

Deep understanding of continuation principle

MySQL knowledge summary (useful for thieves)

桂林 稳健医疗收购桂林乳胶100%股权 填补乳胶产品线空白

Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())

Pit encountered by fastjason

Guilin robust medical acquired 100% equity of Guilin Latex to fill the blank of latex product line

Idea shortcut key settings

Opencv learning notes -day3 (mat object and creation related operations mat:: clone(), mat:: copyto(), mat:: zeros(), mat:: ones(), scalar()...)

小程序手持弹幕的原理及实现(uni-app)

Solution to pychart's failure in importing torch package
随机推荐
9.JNI_ Necessary optimization design
Get to know handler again
Talking about the difference between kotlin collaboration and thread
Detailed explanation of rect class
Cb/s Architecture - Implementation Based on cef3+mfc
4. use ibinder interface flexibly for short-range communication
Distributed things
Coredata acquisition in swift sorting, ascending, descending
Deep understanding of continuation principle
Startup of MySQL green edition in Windows system
Esp32 things (3): overview of the overall system design
2021-10-20
MySQL directory
Express get request
CentOS MySQL installation details
Opencv learning notes -day 12 (ROI region extraction and inrange() function operation)
Clickhouse installation (quick start)
[cmake] make command cannot be executed normally
[protobuf] protobuf generates cc/h file through proto file
JPA naming rules