From 079e6f7c204a7dcef03aac579a63c869e5910cf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90li?= <15040126243@163.com> Date: Fri, 15 Jul 2022 14:30:08 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=20=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E8=84=9A=E6=9C=AC=20=E9=98=B2=E6=AD=A2=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E6=9D=83=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/docker/deploy.sh | 13 +++++++------ script/docker/nginx/{ => conf}/nginx.conf | 0 script/docker/redis/{ => conf}/redis.conf | 2 +- script/docker/redis/data/README.md | 1 + 4 files changed, 9 insertions(+), 7 deletions(-) rename script/docker/nginx/{ => conf}/nginx.conf (100%) rename script/docker/redis/{ => conf}/redis.conf (96%) create mode 100644 script/docker/redis/data/README.md diff --git a/script/docker/deploy.sh b/script/docker/deploy.sh index 0c8f6c43..a4b053cc 100644 --- a/script/docker/deploy.sh +++ b/script/docker/deploy.sh @@ -27,15 +27,16 @@ port(){ ##放置挂载文件 mount(){ #挂载 nginx 配置文件 - if test ! -f "/docker/nginx/conf/nginx.conf" ;then - mkdir -p /docker/nginx/conf - cp nginx/nginx.conf /docker/nginx/conf/nginx.conf + if test ! -f "/docker/nginx/" ;then + mkdir -p /docker/nginx/ + cp nginx/* /docker/nginx/ fi #挂载 redis 配置文件 - if test ! -f "/docker/redis/conf/redis.conf" ;then - mkdir -p /docker/redis/conf - cp redis/redis.conf /docker/redis/conf/redis.conf + if test ! -f "/docker/redis/" ;then + mkdir -p /docker/redis/ + cp redis/* /docker/redis/ fi + chmod -R 777 /docker } #启动基础模块 diff --git a/script/docker/nginx/nginx.conf b/script/docker/nginx/conf/nginx.conf similarity index 100% rename from script/docker/nginx/nginx.conf rename to script/docker/nginx/conf/nginx.conf diff --git a/script/docker/redis/redis.conf b/script/docker/redis/conf/redis.conf similarity index 96% rename from script/docker/redis/redis.conf rename to script/docker/redis/conf/redis.conf index a07c9d21..72255c61 100644 --- a/script/docker/redis/redis.conf +++ b/script/docker/redis/conf/redis.conf @@ -1,5 +1,5 @@ # redis 密码 -# requirepass ruoyi123 +requirepass ruoyi123 # key 监听器配置 # notify-keyspace-events Ex diff --git a/script/docker/redis/data/README.md b/script/docker/redis/data/README.md new file mode 100644 index 00000000..fbc5474b --- /dev/null +++ b/script/docker/redis/data/README.md @@ -0,0 +1 @@ +数据目录 请执行 `chmod 777 /docker/redis/data` 赋予读写权限 否则将无法写入数据 \ No newline at end of file