当前位置:网站首页>Redis installation
Redis installation
2022-07-06 02:26:00 【Flying rookie uncle】
One 、 Stand-alone version - 6.2.6
1. Default profile
- official redis Of docker There is no configuration file in ,redis The configuration takes the default value
docker search redis
docker pull redis
docker run -p 6380:6379 --name erick_redis -d redis
# View the current redis Version of
docker exec -it erick_redis redis-server -v
# Get into redis
docker exec -it erick_redis bash
# Get into redis Command line of
redis-cli
# sign out redis Instruction line , Or quit redis Containers
exit
2. Custom configuration files
- redis Officially download one redis, And will redis Below redis.conf Copy the file out
- Customize and modify the file , Mount the container data volume to redis Medium docker in
bind 127.0.0.1 ::1 # Limit redis Locally accessible only , The line must be commented out
protected-mode no # Default yes, Turn on the protection mode , Limited to local access ;
daemonize no # Default no, Change it to yes Will cause profile mode to start redis Failure ;
databases 10 # The default is 16, You can change to 10 Verify whether the configuration file is effective
# 1. mac The console uploads files to centos Server opt file
scp redis.conf [email protected]:/opt/
# 2. Mount the configuration file in the host to docker Medium redis, In this way, there will be a redis.conf file
docker run -v /opt:/usr/local/etc/redis -p 6381:6379 -d --name szredis redis redis-server /usr/local/etc/redis/redis.conf
# /opt:/usr/local/etc/redis: opt Is equipped with redis.conf Host Directory of the file
# /usr/local/etc/redis/redis.conf: There will be this in the newly generated container redis This directory , If it is not configured, there will be no
边栏推荐
- Sword finger offer 29 Print matrix clockwise
- The intelligent material transmission system of the 6th National Games of the Blue Bridge Cup
- [solution] every time idea starts, it will build project
- The third level of C language punch in
- Apicloud openframe realizes the transfer and return of parameters to the previous page - basic improvement
- How to check the lock information in gbase 8C database?
- Paper notes: limit multi label learning galaxc (temporarily stored, not finished)
- 数据工程系列精讲(第四讲): Data-centric AI 之样本工程
- Zero basic self-study STM32 wildfire review of GPIO use absolute address to operate GPIO
- Paper notes: graph neural network gat
猜你喜欢

Use the list component to realize the drop-down list and address list
![[width first search] Ji Suan Ke: Suan tou Jun goes home (BFS with conditions)](/img/ec/7fcdcbd9c92924e765d420f7c71836.jpg)
[width first search] Ji Suan Ke: Suan tou Jun goes home (BFS with conditions)

Computer graduation design PHP college classroom application management system

数据工程系列精讲(第四讲): Data-centric AI 之样本工程

Using SA token to solve websocket handshake authentication

爬虫(9) - Scrapy框架(1) | Scrapy 异步网络爬虫框架

Zero foundation self-study STM32 - Review 2 - encapsulating GPIO registers with structures

一位博士在华为的22年

【社区人物志】专访马龙伟:轮子不好用,那就自己造!

Minecraft 1.16.5 生化8 模组 2.0版本 故事书+更多枪械
随机推荐
Apicloud openframe realizes the transfer and return of parameters to the previous page - basic improvement
Black high-end responsive website dream weaving template (adaptive mobile terminal)
RDD conversion operator of spark
Campus second-hand transaction based on wechat applet
模板_求排列逆序对_基于归并排序
Use Scrollview and tabhost to realize vertical scrollbars and tabs
【机器人手眼标定】eye in hand
Pangolin Library: subgraph
Y a - t - il des cas où sqlcdc surveille plusieurs tables et les associe à une autre? Tout fonctionne dans MySQL
Bigder:34/100 面试感觉挺好的,没有收到录取
继承的构造函数
Virtual machine network, networking settings, interconnection with host computer, network configuration
How to improve the level of pinduoduo store? Dianyingtong came to tell you
有沒有sqlcdc監控多張錶 再關聯後 sink到另外一張錶的案例啊?全部在 mysql中操作
Crawler (9) - scrape framework (1) | scrape asynchronous web crawler framework
在线怎么生成富文本
MySQL lethal serial question 1 -- are you familiar with MySQL transactions?
vs code保存时 出现两次格式化
2022 edition illustrated network pdf
SQL statement