当前位置:网站首页>[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 .
边栏推荐
- Big talk Domain Driven Design -- presentation layer and others
- 8 自定义评估函数
- Redis 迁移(操作流程建议)1
- How to separate jar packages and resource files according to packaging?
- [time complexity and space complexity]
- R language plotly visualization: Violin graph, multi category variable violin graph, grouped violin graph, split grouped violin graph, two groups of data in each violin graph, each group accounts for
- Redis migration (recommended operation process) 1
- Hyperf框架使用阿里云OSS上传失败
- Tweenmax+svg switch color animation scene
- SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
猜你喜欢

『C语言』题集 of ⑩

Solana capacity expansion mechanism analysis (1): an extreme attempt to sacrifice availability for efficiency | catchervc research

IAR engineering adapts gd32 chip

Tweenmax+svg switch color animation scene

JVM notes

清华“神奇药水”登Nature:逆转干细胞分化,比诺奖成果更进一步,网友:不靠精子卵子就能创造生命了?!...

振动式液量检测装置

Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»

Ten thousand words! In depth analysis of the development trend of multi-party data collaborative application and privacy computing under the data security law

What is the difference between stm32f1 and gd32f1?
随机推荐
Analyse panoramique de la chaîne industrielle en amont, en aval et en aval de la NFT « Dry goods»
9 Tensorboard的使用
MHA switching (recommended operation process)
11 introduction to CNN
首例猪心移植细节全面披露:患者体内发现人类疱疹病毒,死后心脏重量翻倍,心肌细胞纤维化丨团队最新论文...
8 自定义评估函数
Tsinghua's "magic potion" is published in nature: reversing stem cell differentiation, and the achievements of the Nobel Prize go further. Netizen: life can be created without sperm and eggs
「幹貨」NFT 上中下遊產業鏈全景分析
Binary array command of redis
Anaconda3 installation tensorflow version 2.0 CPU and GPU installation, win10 system
What is the process of switching C # read / write files from user mode to kernel mode?
数据分析----numpy快速入门
Kept to implement redis autofailover (redisha) 1
Handwritten numeral recognition, run your own picture with the saved model
STEPN 新手入門及進階
补齐短板-开源IM项目OpenIM关于初始化/登录/好友接口文档介绍
心情不好,我就这样写代码
Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
长安链交易防重之布谷鸟过滤器
Ideal path problem