Browse Source

fix bug

main
xiaoz 3 years ago
parent
commit
4677047408
  1. 2
      Dockerfile
  2. 2
      install.sh
  3. 2
      run.sh

2
Dockerfile

@ -1,4 +1,4 @@
FROM redis:6-alpine3.16 FROM redis:6-alpine3.13
WORKDIR /root WORKDIR /root
#复制启动文件 #复制启动文件

2
install.sh

@ -33,7 +33,7 @@ cp /root/www.conf /etc/php7/php-fpm.d/
cp /root/nginx.conf /etc/nginx/ cp /root/nginx.conf /etc/nginx/
cp /root/run.sh /usr/sbin/ cp /root/run.sh /usr/sbin/
#复制redis配置文件 #复制redis配置文件
cp /root/redis.conf /data/ cp /root/redis.conf /etc/
#cp /root/php.ini /etc/php7/ #cp /root/php.ini /etc/php7/
#启动脚本赋予权限 #启动脚本赋予权限
chmod +x /usr/sbin/run.sh chmod +x /usr/sbin/run.sh

2
run.sh

@ -6,7 +6,7 @@
onenav_path='/data/wwwroot/default' onenav_path='/data/wwwroot/default'
#start redis #start redis
redis-server redis-server /etc/redis.conf
#start php-fpm #start php-fpm
php-fpm7 -RD php-fpm7 -RD
#start nginx #start nginx

Loading…
Cancel
Save