##
查看Nginx错误日志
vim /usr/local/nginx/logs/error.log
####
2021/11/15 19:26:59 [crit] 14130#0: *4 stat() "/root/code/dist/index.html" failed (13: Permission denied), client: 192.168.111.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.111.3:8001", referrer: "http://192.168.111.3:8001/"
##
因为我改了nginx访问静态文件的目录,而且我用的是root用户修改的。
nginx.conf配置文件也要指明用的用户:
###