当前位置:论坛首页 > Linux面板 > 求助

发现一个新问题

发表在 Linux面板2017-11-1 10:22 [复制链接] 11 3948

我的服务器上安装了 apache2.4 + mysql5.5 + php5.4
并且安装了Wordpress出现了如下问题:

1.访问 wordprees的站点,很高概率进不去,服务器没有回应
2.访问 8888端口的后台,完全正常

通过lsof -i:80 发现如下信息,Type只有ipv6,这个是否是导致ipv4端口无法访问的原因?该如何解决?
WX20171101-101508@2x.png
使用道具 举报 只看该作者 回复
发表于 2017-11-1 10:25:24 | 显示全部楼层
因为网站的访问量很小,一旦可以成功访问的时候,就变正常了,我不太懂,有谁能帮帮忙吗?
使用道具 举报 回复 支持 反对
发表于 2017-11-1 11:04:12 | 显示全部楼层
不太懂,希望大神赐教
使用道具 举报 回复 支持 反对
发表于 2017-11-1 11:42:37 | 显示全部楼层
服务器没有回应  返回的是5xx代码么?如果是,说明你的服务器配置有问题……
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:03:46 | 显示全部楼层
marsfalling 发表于 2017-11-1 11:42
服务器没有回应  返回的是5xx代码么?如果是,说明你的服务器配置有问题…… ...

服务器根本没有返回任何内容,我查看http日志也没有任何信息,ssh的22端,8888,全是正常的,就80会出新这样的问题,但是一旦响应了,就正常了,然后过一段时间就又出现类似的问题

Ubuntu 16.04
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:27:49 | 显示全部楼层
chrome报错是:ERR_CONNECTION_TIMED_OUT
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:28:56 | 显示全部楼层
ping是完全正常的,没有任何丢包的情况
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:33:43 | 显示全部楼层
WX20171101-153213@2x.png
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:34:54 | 显示全部楼层
ArviniMac:~ Arvin$ curl www.nuanwenzhang.com
curl: (7) Failed to connect to www.nuanwenzhang.com port 80: Operation timed out
ArviniMac:~ Arvin$
使用道具 举报 回复 支持 反对
发表于 2017-11-1 15:42:16 | 显示全部楼层
找到原因了,我用netstat -ant | grep $ip:80 | wc -l  
查看当前80端口的连接数的时候发现,无法访问的时候都有大量连接存在,来自于同一个国外的ip地址,我把他加到黑名单了
应该就是同时链接数量的限制导致的,我修改下限制,再增加一个防御策略,感谢@marsfalling
使用道具 举报 回复 支持 反对
发表于 2017-11-1 17:05:39 | 显示全部楼层
还是有问题,我通过ab命令做压力测试,对一个图片内容进行并发1000次,总共1万次的下载测试,完全是没有问题,所以应该不是并发的问题导致的,还有什么其他的原因吗?
使用道具 举报 回复 支持 反对
发表于 2017-11-1 17:18:55 | 显示全部楼层
[Tue Oct 31 17:47:49.124465 2017] [mpm_prefork:notice] [pid 3503] AH00163: Apache/2.4.27 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Oct 31 17:47:49.124472 2017] [core:notice] [pid 3503] AH00094: Command line: '/www/server/apache/bin/httpd'
[Tue Oct 31 17:50:57.985592 2017] [mpm_prefork:notice] [pid 3503] AH00173: SIGHUP received.  Attempting to restart
[Tue Oct 31 17:50:57.999883 2017] [ssl:warn] [pid 3503] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 31 17:50:57.999930 2017] [lbmethod_heartbeat:notice] [pid 3503] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 31 17:50:58.001439 2017] [mpm_prefork:notice] [pid 3503] AH00163: Apache/2.4.27 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Oct 31 17:50:58.001471 2017] [core:notice] [pid 3503] AH00094: Command line: '/www/server/apache/bin/httpd'
[Tue Oct 31 18:30:32.464125 2017] [mpm_prefork:notice] [pid 3503] AH00173: SIGHUP received.  Attempting to restart
[Tue Oct 31 18:30:32.479585 2017] [ssl:warn] [pid 3503] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 31 18:30:32.479621 2017] [lbmethod_heartbeat:notice] [pid 3503] AH02282: No slotmem from mod_heartmonitor
[Tue Oct 31 18:30:32.481318 2017] [mpm_prefork:notice] [pid 3503] AH00163: Apache/2.4.27 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Tue Oct 31 18:30:32.481342 2017] [core:notice] [pid 3503] AH00094: Command line: '/www/server/apache/bin/httpd'
[Wed Nov 01 05:00:01.748290 2017] [mpm_prefork:notice] [pid 3503] AH00171: Graceful restart requested, doing restart
[Wed Nov 01 05:00:01.766447 2017] [ssl:warn] [pid 3503] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Nov 01 05:00:01.766503 2017] [lbmethod_heartbeat:notice] [pid 3503] AH02282: No slotmem from mod_heartmonitor
[Wed Nov 01 05:00:01.766623 2017] [mpm_prefork:notice] [pid 3503] AH00163: Apache/2.4.27 (Unix) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Nov 01 05:00:01.766629 2017] [core:notice] [pid 3503] AH00094: Command line: '/www/server/apache/bin/httpd'
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表