A:问题:访问nginx是出现,然后在日志文件中查看到:2016/07/30 15:30:39 /home/ftpuser/images/1.jgp" failed (13: Permission denied) while reading upstream, client: 192.168.1.106, server: localhost, request: "GET /1.jpg HTTP/1.1", host: "192.168.1.107"
B:解决方法:
1、修改nginx.conf,将第一行修改为 user root ,保存退出。
2、停止 nginx -s stop。
3、重启 nginx -c nginx.conf。
C:测试结果:
访问成功: