当前位置:网站首页>[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 .
边栏推荐
- 今年高考英语AI得分134,复旦武大校友这项研究有点意思
- Kept to implement redis autofailover (redisha)
- 10 tf. data
- 【时间复杂度和空间复杂度】
- JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序
- 6 custom layer
- 4 自定义模型训练
- I want to know how to open an account through online stock? Is online account opening safe?
- R language uses cor function to calculate the correlation matrix for correlation analysis, uses corrgram package to visualize the correlation matrix, reorders rows and columns using principal componen
- 如何辨别合约问题
猜你喜欢

Transformation of zero knowledge QAP problem

Handwritten numeral recognition, run your own picture with the saved model

人人都当科学家之免Gas体验mint爱死机

JVM notes

今年高考英语AI得分134,复旦武大校友这项研究有点意思

Tencent Peking University's sparse large model training acceleration program het was selected into the VLDB of the international summit

100+数据科学面试问题和答案总结 - 基础知识和数据分析

1 张量的简单使用

JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序

STEPN 新手入门及进阶
随机推荐
[thinking] what were you buying when you bought NFT?
11 introduction to CNN
牛客小白月赛50
STEPN 新手入门及进阶
Keepalived 实现 Redis AutoFailover (RedisHA)1
若依打包如何分离jar包和资源文件?
NFT Platform Security Guide (1)
Canvas three dot flashing animation
【力扣刷题】二分查找:4. 寻找两个正序数组的中位数
Beijing University and Tencent jointly build angel4.0, and the self-developed in-depth learning framework "River map" is integrated into the ecology
【207】Apache崩溃的几个很可能的原因,apache崩溃几个
What is the process of switching C # read / write files from user mode to kernel mode?
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
Redis的ACID
Stepn novice introduction and advanced
7 自定义损失函数
Transaction input data of Ethereum
清华“神奇药水”登Nature:逆转干细胞分化,比诺奖成果更进一步,网友:不靠精子卵子就能创造生命了?!...
10 tf. data
补齐短板-开源IM项目OpenIM关于初始化/登录/好友接口文档介绍