12下一页
返回列表 发帖
查看: 318|回复: 16

[求助] 网站经常504

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
发表于 2024-3-4 18:34:19 | 显示全部楼层 |阅读模式
1.服务器资源没问题
2.解析没问题
3.CDN没问题

(我在模板主页index里加入了遮罩代码和iframe嵌套代码,遮罩上引入了CSS文件,有背景视频4M多,有一个logo和导航菜单,这个是否影响?)
php和nginx都按照网络教程配置过。
过一会网站就正常了,真是摸不到头脑了。

网站主页经常504 Gateway Time-out ,但是网站子目录的index.html能正常访问,是什么问题?
网站主页:www.huyuzhe.com
子目录:https://www.huyuzhe.com/yxmsvip/JuHeSouSuo/index.html



我知道答案 回答被采纳将会获得1 贡献 已有16人回答
回复

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-4 18:35:53 | 显示全部楼层
截图202403041835489771.jpg
回复 支持 反对

使用道具 举报

6

主题

367

回帖

478

积分

应用开发者

贡献
15 点
金币
13 个
QQ
发表于 2024-3-4 22:11:42 | 显示全部楼层
有背景视频4M多


去掉它先看看?或者有没有更详细的php慢日志呢?
Thinkphp、Discuz开发、PHP环境搭建以及解决网站各种疑难杂症。联系QQ:502251257
回复 支持 反对

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-4 22:16:21 来自手机 | 显示全部楼层
false001 发表于 2024-3-4 22:11
去掉它先看看?或者有没有更详细的php慢日志呢?

PHP慢日志:

www/wwwroot/www.huyuzhe.com/source/class/discuz/discuz_database.php:48
[0x00007f2aaf0148c0] delete() /www/wwwroot/www.huyuzhe.com/source/plugin/k_spider/spider.class.php:75
[0x00007f2aaf014720] k_spider() /www/wwwroot/www.huyuzhe.com/source/plugin/k_spider/spider.class.php:81
[0x00007f2aaf0146a0] global_footer() /www/wwwroot/www.huyuzhe.com/source/function/function_core.php:1319
[0x00007f2aaf0144c0] hookscript() /www/wwwroot/www.huyuzhe.com/source/function/function_core.php:1359
[0x00007f2aaf014420] hookscriptoutput() /www/wwwroot/www.huyuzhe.com/data/template/2_diy_forum_forumdisplay.tpl.php:1
[0x00007f2aaf013d60] [INCLUDE_OR_EVAL]() /www/wwwroot/www.huyuzhe.com/source/module/forum/forum_forumdisplay.php:983
[0x00007f2aaf013100] [INCLUDE_OR_EVAL]() /www/wwwroot/www.huyuzhe.com/forum.php:71

[04-Mar-2024 22:02:49]  [pool www] pid 18082
script_filename = /www/wwwroot/www.huyuzhe.com/forum.php
[0x00007f2aaf0147f0] query() /www/wwwroot/www.huyuzhe.com/source/class/db/db_driver_mysqli.php:141
[0x00007f2aaf014710] query() /www/wwwroot/www.huyuzhe.com/source/class/discuz/discuz_database.php:142
[0x00007f2aaf014650] query() /www/wwwroot/www.huyuzhe.com/source/class/discuz/discuz_database.php:48
[0x00007f2aaf014550] delete() /www/wwwroot/www.huyuzhe.com/source/plugin/k_spider/spider.class.php:75
[0x00007f2aaf0143b0] k_spider() /www/wwwroot/www.huyuzhe.com/source/plugin/k_spider/spider.class.php:81
[0x00007f2aaf014330] global_footer() /www/wwwroot/www.huyuzhe.com/source/function/function_core.php:1319
[0x00007f2aaf014150] hookscript() /www/wwwroot/www.huyuzhe.com/source/function/function_core.php:1359
[0x00007f2aaf0140b0] hookscriptoutput() /www/wwwroot/www.huyuzhe.com/data/template/4_diy_touch_forum_forumdisplay.tpl.php:1
[0x00007f2aaf013d60] [INCLUDE_OR_EVAL]() /www/wwwroot/www.huyuzhe.com/source/module/forum/forum_forumdisplay.php:983
[0x00007f2aaf013100] [INCLUDE_OR_EVAL]() /www/wwwroot/www.huyuzhe.com/forum.php:71
回复 支持 反对

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-4 22:31:52 来自手机 | 显示全部楼层
堡塔我开了防爆破
回复 支持 反对

使用道具 举报

6

主题

367

回帖

478

积分

应用开发者

贡献
15 点
金币
13 个
QQ
发表于 2024-3-5 10:33:59 | 显示全部楼层
k_spider


这是一个什么插件?能停掉吗?
Thinkphp、Discuz开发、PHP环境搭建以及解决网站各种疑难杂症。联系QQ:502251257
回复 支持 反对

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-5 13:59:41 | 显示全部楼层
false001 发表于 2024-3-5 10:33
这是一个什么插件?能停掉吗?

截图202403051359388147.jpg
回复 支持 反对

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-5 14:00:07 | 显示全部楼层

这个有问题吗?
回复 支持 反对

使用道具 举报

35

主题

2008

回帖

3478

积分

应用开发者

Discuz! 运维

贡献
98 点
金币
616 个
QQ
发表于 2024-3-5 14:02:02 | 显示全部楼层
看mysql慢日志
回复 支持 反对

使用道具 举报

12

主题

38

回帖

55

积分

渐入佳境

贡献
0 点
金币
3 个
 楼主| 发表于 2024-3-5 14:24:23 | 显示全部楼层
mysql慢日志 :


SET timestamp=1709579063;
DELETE FROM pre_k_spider WHERE spider_time < '1706987051';
# Time: 2024-03-04T19:04:38.623324Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 14274
# Query_time: 36.536060  Lock_time: 29.201423 Rows_sent: 0  Rows_examined: 506615
SET timestamp=1709579078;
DELETE FROM pre_k_spider WHERE spider_time < '1706987041';
# Time: 2024-03-04T19:04:38.631825Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 14326
# Query_time: 6.842157  Lock_time: 0.000065 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709579078;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_87' , `cachevalue`='a:2:{s:6:\"sortid\";a:25:{i:5;s:1:\"0\";i:74;s:1:\"0\";i:1;s:1:\"0\";i:59;s:1:\"0\";i:61;s:1:\"0\";i:3;s:1:\"0\";i:69;s:1:\"0\";i:6;s:1:\"0\";i:15;s:1:\"0\";i:60;s:1:\"0\";i:4;s:1:\"0\";i:11;s:1:\"0\";i:7;s:1:\"0\";i:8;s:1:\"0\";i:58;s:1:\"0\";i:27;s:1:\"0\";i:56;s:1:\"0\";i:12;s:1:\"0\";i:9;s:1:\"0\";i:10;s:1:\"0\";i:28;s:1:\"0\";i:73;s:1:\"0\";i:87;s:1:\"0\";i:52;s:1:\"0\";i:62;s:1:\"0\";}s:6:\"typeid\";a:2:{i:622;s:1:\"0\";i:667;s:1:\"0\";}}';
# Time: 2024-03-04T19:06:31.957988Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 14457
# Query_time: 49.090919  Lock_time: 45.694871 Rows_sent: 0  Rows_examined: 506803
SET timestamp=1709579191;
DELETE FROM pre_k_spider WHERE spider_time < '1706987142';
# Time: 2024-03-04T19:15:38.907112Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 14930
# Query_time: 21.420862  Lock_time: 0.000053 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709579738;
DELETE FROM pre_common_process WHERE processid='DZ_CRON_27' OR expiry<1709579717;
# Time: 2024-03-04T20:01:20.621849Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 17800
# Query_time: 4.017291  Lock_time: 0.000084 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709582480;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
# Time: 2024-03-04T21:01:44.324211Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 18892
# Query_time: 10.667173  Lock_time: 0.000098 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709586104;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
# Time: 2024-03-04T21:01:44.324368Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 18894
# Query_time: 3.121358  Lock_time: 0.000099 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709586104;
INSERT INTO pre_k_spider SET `spider`='Google' , `spider_time`='1709586100' , `spider_url`='https://www.huyuzhe.com/forum.php?mod=forumdisplay&fid=87&filter=sortid&sortid=5&searchsort=1&hyfl=3&zpfl=13&jy=3&dq_5=30&xb=1&dateline=86400' , `url_title`='分类信息-呼吁者' , `spider_ip`='115.220.11.98' , `agent`='mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mmb29p) applewebkit/537.36 (khtml, like gecko) chrome/121.0.6167.139 mobile safari/537.36 (compatible; googlebot/2.1; +http://www.google.com/bot.html)' , `sfrom`='mobile';
# Time: 2024-03-04T21:02:26.472879Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 18907
# Query_time: 3.770580  Lock_time: 0.000078 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709586146;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
# Time: 2024-03-05T01:01:30.184863Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 28762
# Query_time: 4.827048  Lock_time: 0.000101 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709600490;
INSERT INTO pre_k_spider SET `spider`='Google' , `spider_time`='1709600484' , `spider_url`='https://www.huyuzhe.com/forum.php?mod=forumdisplay&fid=87&filter=sortid&sortid=5&searchsort=1&dq_5=23&zpfl=6&hyfl=27&jy=1&xb=1&dateline=86400' , `url_title`='分类信息-呼吁者' , `spider_ip`='115.220.11.14' , `agent`='mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mmb29p) applewebkit/537.36 (khtml, like gecko) chrome/121.0.6167.139 mobile safari/537.36 (compatible; googlebot/2.1; +http://www.google.com/bot.html)' , `sfrom`='mobile';
# Time: 2024-03-05T01:02:22.289494Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 28796
# Query_time: 3.951098  Lock_time: 0.000076 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709600542;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
/www/server/mysql/bin/mysqld, Version: 5.7.44-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /tmp/mysql.sock
Time                 Id Command    Argument
# Time: 2024-03-05T04:05:38.690401Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id:  8398
# Query_time: 3.073701  Lock_time: 0.000056 Rows_sent: 0  Rows_examined: 0
use www_huyuzhe_com;
SET timestamp=1709611538;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_135' , `cachevalue`='a:1:{s:6:\"sortid\";a:1:{i:1;s:1:\"0\";}}';
# Time: 2024-03-05T05:01:59.672035Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id:  9356
# Query_time: 9.904640  Lock_time: 0.000127 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709614919;
SELECT id from pre_common_banned WHERE expiration > 1709614909 AND lowerip <= 0x00000000000000000000000034a790b9 AND upperip >= 0x00000000000000000000000034a790b9;
# Time: 2024-03-05T05:03:41.489625Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id:  9380
# Query_time: 3.085228  Lock_time: 0.000084 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709615021;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
# Time: 2024-03-05T05:17:10.431267Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id:  9603
# Query_time: 9.124723  Lock_time: 0.000079 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709615830;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';
# Time: 2024-03-05T05:17:10.433833Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id:  9605
# Query_time: 6.599067  Lock_time: 0.000097 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709615830;
INSERT INTO pre_k_spider SET `spider`='Google' , `spider_time`='1709615822' , `spider_url`='https://www.huyuzhe.com/forum.php?mod=forumdisplay&fid=87&filter=sortid&sortid=5&searchsort=1&zpfl=19&jy=4&hyfl=10.4&dq_5=8&xb=1&dateline=86400' , `url_title`='分类信息-呼吁者' , `spider_ip`='115.220.11.95' , `agent`='mozilla/5.0 (linux; android 6.0.1; nexus 5x build/mmb29p) applewebkit/537.36 (khtml, like gecko) chrome/121.0.6167.139 mobile safari/537.36 (compatible; googlebot/2.1; +http://www.google.com/bot.html)' , `sfrom`='mobile';
# Time: 2024-03-05T06:02:06.853971Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 10399
# Query_time: 12.595231  Lock_time: 0.000124 Rows_sent: 0  Rows_examined: 511196
SET timestamp=1709618526;
DELETE FROM pre_k_spider WHERE spider_time < '1708322514';
# Time: 2024-03-05T06:02:20.383669Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 10409
# Query_time: 4.436246  Lock_time: 0.000096 Rows_sent: 0  Rows_examined: 227326
SET timestamp=1709618540;
DELETE FROM pre_k_spider WHERE spider_time < '1708322535';
# Time: 2024-03-05T06:02:20.383696Z
# User@Host: www_huyuzhe_com[www_huyuzhe_com] @ localhost [127.0.0.1]  Id: 10410
# Query_time: 4.237844  Lock_time: 0.000082 Rows_sent: 0  Rows_examined: 0
SET timestamp=1709618540;
REPLACE INTO pre_common_cache SET `cachekey`='threadclasscount_130' , `cachevalue`='a:2:{s:6:\"sortid\";a:5:{i:5;s:1:\"0\";i:7;s:1:\"0\";i:103;s:1:\"0\";i:127;s:1:\"0\";i:90;s:1:\"0\";}s:6:\"typeid\";a:2:{i:586;s:1:\"0\";i:685;s:1:\"0\";}}';

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2024-4-29 11:39 , Processed in 0.045844 second(s), 9 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2024 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表