当前位置:网站首页>[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 .
边栏推荐
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- Failed to get convolution algorithm. This is probably because cuDNN failed to initialize
- 神经网络“炼丹炉”内部构造长啥样?牛津大学博士小姐姐用论文解读
- SAP OData 开发教程 - 从入门到提高(包含 SEGW, RAP 和 CDP)
- The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation
- I want to know how to open an account through online stock? Is online account opening safe?
- Solidus Labs欢迎香港前金融创新主管赵嘉丽担任战略顾问
- Beijing University and Tencent jointly build angel4.0, and the self-developed in-depth learning framework "River map" is integrated into the ecology
- 李飞飞团队将ViT用在机器人身上,规划推理最高提速512倍,还cue了何恺明的MAE...
- 6 custom layer
猜你喜欢

NFT Platform Security Guide (2)

Net based on girdview control to delete and edit row data

大话领域驱动设计——表示层及其他

JVM notes

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

Unlock the value of data fusion! Tencent angel powerfl won the "leading scientific and Technological Achievement Award" at the 2021 digital Expo

What is the process of switching C # read / write files from user mode to kernel mode?

Beijing University and Tencent jointly build angel4.0, and the self-developed in-depth learning framework "River map" is integrated into the ecology
Practice of federal learning in Tencent micro vision advertising

「幹貨」NFT 上中下遊產業鏈全景分析
随机推荐
Common properties of XOR and addition
STEPN 新手入門及進階
IAR engineering adapts gd32 chip
Swiftui retrieves the missing list view animation
Stepn débutant et avancé
JS教程之Electron.js设计强大的多平台桌面应用程序的好工具
7 user defined loss function
JS教程之使用 ElectronJS、VueJS、SQLite 和 Sequelize ORM 从 A 到 Z 创建多对多 CRUD 应用程序
How to create your own NFT (polygon) on opensea
R语言plotly可视化:小提琴图、多分类变量小提琴图、分组(grouped)小提琴图、分裂的分组小提琴图、每个小提琴图内部分为两组数据、每个分组占小提琴图的一半、自定义小提琴图的调色板、抖动数据点
Keepalived 实现 Redis AutoFailover (RedisHA)1
【蓝桥杯集训100题】scratch辨别质数合数 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第15题
Ideal path problem
Cookie和Session详解
【力扣刷题】11.盛最多水的容器//42.接雨水
【力扣刷题】单调栈:84. 柱状图中最大的矩形
Ten thousand words! In depth analysis of the development trend of multi-party data collaborative application and privacy computing under the data security law
今年高考英语AI得分134,复旦武大校友这项研究有点意思
手写数字体识别,用保存的模型跑自己的图片
Tweenmax+svg switch color animation scene