![Nginx 错误日志:[错误] open()“/etc/nginx/html/status/”失败(2:没有此文件或目录),客户端:127.0.0.1,服务器:127.0.0.1](https://linux22.com/image/775327/Nginx%20%E9%94%99%E8%AF%AF%E6%97%A5%E5%BF%97%EF%BC%9A%5B%E9%94%99%E8%AF%AF%5D%20open()%E2%80%9C%2Fetc%2Fnginx%2Fhtml%2Fstatus%2F%E2%80%9D%E5%A4%B1%E8%B4%A5%EF%BC%882%EF%BC%9A%E6%B2%A1%E6%9C%89%E6%AD%A4%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%EF%BC%89%EF%BC%8C%E5%AE%A2%E6%88%B7%E7%AB%AF%EF%BC%9A127.0.0.1%EF%BC%8C%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9A127.0.0.1.png)
我正在运行基于 Ubuntu 的 LEMP 服务器,其中 Nginx 的 google pagespeed、fastcgi 和 modsecurity 模块处于活动状态。我正在查看我的 Nginx 错误日志,但无法弄清楚这些错误的含义、原因以及如何修复它们。似乎有什么东西在无效目录中寻找文件,但我不知道为什么。如果有人能看看我的 Nginx 日志/var/log/nginx/error.log
,并告诉我发生了什么、为什么以及如何解决它,我将不胜感激!如果您有任何想法,请告诉我!
cat /var/log/nginx/error.log
2022/02/27 00:23:32 [error] 396723#502023: [ngx_pagespeed 1.15.0.0-8811] PageSpeed Serf fetch failure rate extremely high; only 9 of 28 recent fetches fully successful; is fetching working?
2022/02/27 00:58:49 [error] 396723#396723: *94537 open() "/etc/nginx/html/us" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /us HTTP/1.1", host: "localhost"
2022/02/27 00:58:49 [error] 396723#396723: *94538 open() "/etc/nginx/html/us" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /us HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:58:50 [error] 396723#396723: *94539 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status?full&json HTTP/1.1", host: "localhost"
2022/02/27 00:58:50 [error] 396723#396723: *94540 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status?full&json HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:58:52 [error] 396723#396723: *94541 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "localhost"
2022/02/27 00:58:52 [error] 396723#396723: *94542 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:58:53 [error] 396723#396723: *94543 open() "/etc/nginx/html/stub_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /stub_status HTTP/1.1", host: "localhost"
2022/02/27 00:58:53 [error] 396723#396723: *94544 open() "/etc/nginx/html/stub_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /stub_status HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:58:53 [error] 396723#396723: *94545 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status HTTP/1.1", host: "localhost"
2022/02/27 00:58:53 [error] 396723#396723: *94546 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:58:53 [error] 396723#396723: *94547 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status?full&json HTTP/1.1", host: "localhost"
2022/02/27 00:58:53 [error] 396723#396723: *94548 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status?full&json HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396723#396723: *94549 open() "/etc/nginx/html/admin/api.php" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /admin/api.php?version HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396721#396721: *94550 open() "/etc/nginx/html/admin/api.php" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /admin/api.php?version HTTP/1.1", host: "localhost"
2022/02/27 00:59:10 [error] 396721#396721: *94551 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "localhost"
2022/02/27 00:59:10 [error] 396721#396721: *94552 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396721#396721: *94553 open() "/etc/nginx/html/basic_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /basic_status HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396721#396721: *94554 open() "/etc/nginx/html/stub_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /stub_status HTTP/1.1", host: "localhost"
2022/02/27 00:59:10 [error] 396721#396721: *94555 open() "/etc/nginx/html/stub_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /stub_status HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396721#396721: *94556 open() "/etc/nginx/html/status/format/json" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status/format/json HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:10 [error] 396721#396721: *94557 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?format=plain HTTP/1.1", host: "localhost"
2022/02/27 00:59:11 [error] 396722#396722: *94558 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?format=plain HTTP/1.1", host: "127.0.0.1"
2022/02/27 00:59:11 [error] 396721#396721: *94559 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "localhost"
2022/02/27 00:59:11 [error] 396722#396722: *94560 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1"
2022/02/27 02:48:21 [error] 396721#474341: [ngx_pagespeed 1.15.0.0-8811] PageSpeed Serf fetch failure rate extremely high; only 3 of 8 recent fetches fully successful; is fetching working?