宝塔CPU跑满100%的解决方案
原因:国外垃圾蜘蛛频繁爬取服务器数据,导致CPU、内存全部拉满
解决办法:
NGINX:
宝塔->网站->具体站点->配置文件
#屏蔽垃圾蜘蛛 if ($http_user_agent ~* (YandexBot|spbot|DnyzBot|Researchscan|semrushbot|yahoo|AhrefsBot|DotBot|Uptimebot|MJ12bot|MegaIndex.ru|ZoominfoBot|Mail.Ru|SeznamBot|BLEXBot|ExtLinksBot|aiHitBot|Barkrowler)){ return 403; }
保存,重启服务器,重启队列即可。
留言评论
暂无留言