diff --git a/Dockerfile b/Dockerfile index 9d4d9e3..f307f41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM redis:6-alpine3.16 +FROM redis:6-alpine3.13 WORKDIR /root #复制启动文件 diff --git a/install.sh b/install.sh index 873c143..9180e87 100644 --- a/install.sh +++ b/install.sh @@ -33,7 +33,7 @@ cp /root/www.conf /etc/php7/php-fpm.d/ cp /root/nginx.conf /etc/nginx/ cp /root/run.sh /usr/sbin/ #复制redis配置文件 -cp /root/redis.conf /data/ +cp /root/redis.conf /etc/ #cp /root/php.ini /etc/php7/ #启动脚本赋予权限 chmod +x /usr/sbin/run.sh diff --git a/run.sh b/run.sh index f6355a0..1906528 100644 --- a/run.sh +++ b/run.sh @@ -6,7 +6,7 @@ onenav_path='/data/wwwroot/default' #start redis -redis-server +redis-server /etc/redis.conf #start php-fpm php-fpm7 -RD #start nginx