访问 Homestead 里面的项目出现 “502 Bad Gateway”?
homestead是按照《Laravel 入门教程》里搭建的,以前访问http://sample2.test/
一直是没问题的,今天不知道怎么就报错了502 Bad Gateway
在:/var/log/nginx/sample.test-error.log
里面出现
2018/01/15 03:10:47 [crit] 2156#2156: *9 connect() to unix:/var/run/php/php7.1-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.10.1, server: sample.test, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "sample.test"
不知道为什么是192.168.10.1 应该是这里有问题吧,但是我不知道如何解决。有没有大佬能够帮助一下,谢谢。
推荐文章: