Skip to content

Commit

Permalink
[fix] Redis default password “dnmp”
Browse files Browse the repository at this point in the history
  • Loading branch information
telanflow committed Jul 5, 2021
1 parent 827b085 commit f4e3d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DNMP 可以构建出基于 Docker 的 PHP 开发环境,其优势有在短时
* PHP74:php-fpm 7.4.x `composer:2.1.3 swoole:4.6.7 redis:5.3.4`
* PHP8:php-fpm 8.0.x `composer:2.1.3 swoole:4.6.7 redis:5.3.4`
* MySQL:5.7
* Redis:latest
* Redis:latest `默认密码:dnmp`
* ~~ElasticSearch:7.1.1~~

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

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

Expand Down
1 change: 1 addition & 0 deletions config/redis/redis.conf
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ slave-priority 100
# use a very strong password otherwise it will be very easy to break.
#
# requirepass foobared
requirepass dnmp

# Command renaming.
#
Expand Down

0 comments on commit f4e3d88

Please sign in to comment.