昨天,服务器可以正常工作,但是现在,以前可以正常工作的 URL 却显示:
404 Not Found
nginx
我正在使用 Linux 版本 2.6.32-754.35.1.el6.x86_64 ([电子邮件保护]) (gcc 版本 4.4.7 20120313 (Red Hat 4.4.7-23) (GCC) ) #1 SMP 星期六 11 月 7 日 12:42:14 UTC 2020
访问日志给了我很多垃圾,例如:
Â@{¿â°•‚¹{÷‘„ÄJDFEp!…XD]q1QAñëM!§›a8©¢„´ÑduÛr,çõMjÖ:ç,76·ÇÌ;ˆÙÔA¢pn-)Ë
¦ó"Ëöš¦–11úU¸Û÷+ ÅÄ#t ±#|;Àø~o|å÷exÉؤdôËÂ-C4áâ1ó‡K;Àäüh¯^¦–˜Lª3RFaSŸêGøgÝk$z?2ª®ŽÃ
我看到了错误日志,但在过去 5 天内没有出现任何内容,错误日志文件在过去 5 天内没有被修改,所以我不确定除此之外我还需要检查什么。
我记得我遇到了一些有关清漆的问题,我想在重启之前和之后我能够解决它,但重启没有任何作用。
我在 php-fpm 日志中看到一件事:
[05-Jan-2022 10:40:26] NOTICE: finished trace of 8276
[05-Jan-2022 10:40:29] WARNING: [pool php5-fcgi-staging01] child 8943, script '/home/ver/v1.3.62/public/index.php' (request: "GET /index.php") executing too slow (9.019635 sec), logging
[05-Jan-2022 10:40:29] NOTICE: child 8943 stopped for tracing
[05-Jan-2022 10:40:29] NOTICE: about to trace 8943
[05-Jan-2022 10:40:29] NOTICE: finished trace of 8943
[05-Jan-2022 10:41:11] WARNING: [pool php5-fcgi-staging01] child 8943, script '/home/ver/v1.3.62/public/index.php' (request: "GET /index.php") executing too slow (8.323565 sec), logging
[05-Jan-2022 10:41:11] NOTICE: child 8943 stopped for tracing
[05-Jan-2022 10:41:11] NOTICE: about to trace 8943
[05-Jan-2022 10:41:11] NOTICE: finished trace of 8943
[05-Jan-2022 10:41:19] WARNING: [pool php5-fcgi-staging01] child 28022, script '/home/ver/v1.3.62/public/index.php' (request: "GET /index.php") executing too slow (10.022734 sec), logging
[05-Jan-2022 10:41:19] NOTICE: child 28022 stopped for tracing
[05-Jan-2022 10:41:19] NOTICE: about to trace 28022
[05-Jan-2022 10:41:19] NOTICE: finished trace of 28022
[05-Jan-2022 10:42:05] WARNING: [pool php5-fcgi-staging01] child 6940, script '/home/ver/v1.3.62/public/index.php' (request: "GET /index.php") executing too slow (10.653465 sec), logging
[05-Jan-2022 10:42:05] NOTICE: child 6940 stopped for tracing
[05-Jan-2022 10:42:05] NOTICE: about to trace 6940
[05-Jan-2022 10:42:05] NOTICE: finished trace of 6940
[05-Jan-2022 10:46:10] WARNING: [pool php5-fcgi-staging01] child 32351, script '/home/ver/v1.3.62/public/index.php' (request: "GET /index.php") executing too slow (8.441833 sec), logging
[05-Jan-2022 10:46:10] NOTICE: child 32351 stopped for tracing
[05-Jan-2022 10:46:10] NOTICE: about to trace 32351
[05-Jan-2022 10:46:10] NOTICE: finished trace of 32351
[05-Jan-2022 11:28:21] NOTICE: Terminating ...
[05-Jan-2022 11:28:21] NOTICE: exiting, bye-bye!
就是这样,所以我想 404 可能是由于使用了太多资源。我该如何进一步调查?谢谢
该堆栈是 Nginx -> Varnish -> Apache -> PHP-FPM
我认为 cronjob 可能是问题所在,有没有办法禁用所有 cronjobs 而不停止浏览器请求的服务?