当前位置:网站首页>[207] several possible causes of Apache crash
[207] several possible causes of Apache crash
2022-06-26 16:10:00 【Milo mouth】
Recently, the number of website visits has increased rapidly , So a lot of questions came out , Tossed for days , Write down some operation summary , Sharing , Let's talk about it first. Apache Some possibilities of crash and corresponding treatment methods , From the simplest troubleshooting :
1, Insufficient disk space
This is the most easily overlooked problem , Today's disks are cheap , Most people have a lot of spare disk space , Don't take it for granted that it's not your disk space problem , Maybe it's a log ? Or your cache file suddenly eats up your disk ?df -h Let's do something easy , Lack of disk space can cause a lot of strange phenomena ,Apache The process keeps piling up without releasing , Because of the emergence of “could not make child process * exit,attemption to continue anyway…” And so on , Last Apache Eat up the memory of the whole machine ,SSH Can not login , You can't Reboot, You can't Kill process ,, You can only restart by force
2, Check Apache The log of has reached 2G!!
You usually have a rough estimate of your own log , But check Apache The log size of is also necessary , especially Apache Of Access journal , But recently some extremely boring so-called garbage people , Constantly scan the directory of your machine , Trying to download your... On your machine Wwwroot.rar, Download your Data.mdb, The grass , Still yours PHP Scan your script directory Upload.asp file ,( Do a Rewrite, Feed these to scan some Trojans or advertisements , ha-ha , That's what I did ), Such garbage people give Apache Of Error Logs generate a lot of junk information . If Apache The log reaches 2G( Limit ),Apahce There may be some strange phenomena that cannot be explained ,Httpd The process could not be started , Or as soon as it starts , It stopped immediately .
3,DDos attack
Usually this kind of method is troublesome to check and handle , Eliminate the cause of your machine itself ,Apache Reasons for configuration , Find out Apache Still keep breaking down , Where can I monitor the server network connection , Use the script to check the connection :netstat -na|grep ESTABLISHED|awk ‘{print $5}’|awk -F: ‘{print $1}’|sort|uniq -c|sort -r -n, Or count the number of requests IP(netstat -an | grep -v LISTEN | awk ‘{print $5}’ | awk ‘BEGIN { FS=”:” } { Num[$1]++ } END { for(i in Num) if(Num[i]>8) { print i} }’ | xargs -i[] iptables -I INPUT -s [] -j DROP), Just shut them down , Yes DDos Usually there is no good soft defense , If the money allows , Where can I buy a better hard defense .
I have executed the above order , It may be to implement the above prevention ip Too many requests .
about DDos attack , The host is hosted in another place , Or it is inconvenient to go to the computer room , Where it is difficult to monitor and process , When your machine crashes , Your remote SSH I can't get in at all , Extremely depressed .
Apache There is an anti DDos Module mod_evasive(mod_evasive See here for the installation of ), There is no way to evaluate its effect , But at least it can help you record DDos Over here IP, It's too much DDos, Where can I call the police directly .
边栏推荐
- 【时间复杂度和空间复杂度】
- R language plot visualization: plot visualizes the normalized histogram, adds the density curve KDE to the histogram, and uses geom at the bottom edge of the histogram_ Adding edge whisker graph with
- 10 tf. data
- Net基于girdview控件实现删除与编辑行数据
- 请指教同花顺软件究竟是什么?网上开户是否安全么?
- 10 tf.data
- 1-12Vmware新增SSH功能
- SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
- (DFS search) acwing 2005 horseshoe
- 大话领域驱动设计——表示层及其他
猜你喜欢

理想路径问题

How to identify contractual issues

Anaconda3安装tensorflow 2.0版本cpu和gpu安装,Win10系统

3 keras版本模型训练

The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation

补齐短板-开源IM项目OpenIM关于初始化/登录/好友接口文档介绍

OpenSea上如何创建自己的NFT(Polygon)

Beijing University and Tencent jointly build angel4.0, and the self-developed in-depth learning framework "River map" is integrated into the ecology
![[Blue Bridge Cup training 100 questions] scratch distinguishing prime numbers and composite numbers Blue Bridge Cup scratch competition special prediction programming question intensive training simul](/img/26/c0c8a406ff4ffe0ae37d277f730bd0.png)
[Blue Bridge Cup training 100 questions] scratch distinguishing prime numbers and composite numbers Blue Bridge Cup scratch competition special prediction programming question intensive training simul

(1) Keras handwritten numeral recognition and recognition of self written numbers
随机推荐
100+数据科学面试问题和答案总结 - 基础知识和数据分析
JVM notes
Binary array command of redis
4 自定义模型训练
1 张量的简单使用
R语言广义线性模型函数GLM、glm函数构建逻辑回归模型(Logistic regression)、分析模型是否过离散(Overdispersion)、使用残差偏差与二项式模型中的剩余自由度的比率评估
2 three modeling methods
Ideal path problem
若依打包如何分离jar包和资源文件?
Development, deployment and online process of NFT project (1)
NFT contract basic knowledge explanation
Arduino UNO + DS1302简单获取时间并串口打印
【力扣刷题】二分查找:4. 寻找两个正序数组的中位数
零知识 QAP 问题的转化
振动式液量检测装置
Svg rising Color Bubble animation
Svg savage animation code
首例猪心移植细节全面披露:患者体内发现人类疱疹病毒,死后心脏重量翻倍,心肌细胞纤维化丨团队最新论文...
R language generalized linear model function GLM, GLM function to build logistic regression model, analyze whether the model is over discrete, and use the ratio of residual deviation and residual degr
NFT交易原理分析(1)