docker-composer 一次低级错误的配置 file n

2019-07-31  本文已影响0人  麦子时光_新浪

用的是一个常规配置 

https://github.com/kyleliwotian/docker-lnmp.git

遇见这个错误 ,首先 要知道 nginx 已经通了

file not found.

nginx  错误 :

open() "/data/www/monitoring_platform_v2/public/" failed (13: Permission denied), client: 192.168.72.1, server: _, request: "POST / HTTP/1.1", host: "192.168.72.129:8080"

2019/07/31 21:04:11 [error] 6#6: *7 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.72.1, server: _, request: "POST / HTTP/1.1", upstream: "fastcgi://172.18.0.6:9000", host: "192.168.72.129:8080"

docker -composer  不是copy 其实 是映射 ,我突然 想起来 可能是 docker  执行时 无法改宿主机的 站点文件 ,所以这里 一定要给 docker 宿主的权限  ;

上一篇 下一篇

猜你喜欢

热点阅读