Skip to content

Commit f4e3d88

Browse files
committed
[fix] Redis default password “dnmp”
1 parent 827b085 commit f4e3d88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ DNMP 可以构建出基于 Docker 的 PHP 开发环境,其优势有在短时
1515
* PHP74:php-fpm 7.4.x `composer:2.1.3 swoole:4.6.7 redis:5.3.4`
1616
* PHP8:php-fpm 8.0.x `composer:2.1.3 swoole:4.6.7 redis:5.3.4`
1717
* MySQL:5.7
18-
* Redis:latest
18+
* Redis:latest `默认密码:dnmp`
1919
* ~~ElasticSearch:7.1.1~~
2020

2121
### 目录结构
@@ -50,7 +50,7 @@ DNMP 可以构建出基于 Docker 的 PHP 开发环境,其优势有在短时
5050
# 构建单个镜像
5151
sudo docker-compose build --no-cache [nginx|php56|php74|php8 ...]
5252

53-
> 📢:注意!!dnmp部署完成后,需要修改redis服务的密码`config/redis/redis.conf 设置 requirepass 你的密码`。(否则redis允许公网任意人员访问)
53+
> 📢 注意:dnmp部署完成后,需要修改redis服务的密码`config/redis/redis.conf 设置 requirepass dnmp(替换成你自己的密码)`
5454
5555
启动成功访问 http://localhost 即可
5656

config/redis/redis.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ slave-priority 100
498498
# use a very strong password otherwise it will be very easy to break.
499499
#
500500
# requirepass foobared
501+
requirepass dnmp
501502

502503
# Command renaming.
503504
#

0 commit comments

Comments
 (0)