如何在Amazon Linux ami中安装mod_evasive 亚马逊是否计划在其最新的AMI中添加mov_evasive 我需要如何在Amazon Linux上安装mod_evasive?有 网上有很多教程,但我没有找到 最近关于AmazonLinux的教程 亚马逊有没有关于如何确保EC2安全的建议 针对DDoS攻击的实例?如果亚马逊 可以为如何保护EC2实例提供某种指导 通过使用开源防火墙和 Apache模块,比如mod_security和mod_evasive

如何在Amazon Linux ami中安装mod_evasive 亚马逊是否计划在其最新的AMI中添加mov_evasive 我需要如何在Amazon Linux上安装mod_evasive?有 网上有很多教程,但我没有找到 最近关于AmazonLinux的教程 亚马逊有没有关于如何确保EC2安全的建议 针对DDoS攻击的实例?如果亚马逊 可以为如何保护EC2实例提供某种指导 通过使用开源防火墙和 Apache模块,比如mod_security和mod_evasive,apache,http,amazon-ec2,ddos,mod-evasive,Apache,Http,Amazon Ec2,Ddos,Mod Evasive,我尝试安装: sudo yum --enablerepo=epel install mod_evasive Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00 amzn-updates |

我尝试安装:

sudo yum --enablerepo=epel install mod_evasive

Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main                                                | 2.1 kB     00:00     
amzn-updates                                             | 2.5 kB     00:00     
1034 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mod_evasive.x86_64 0:1.10.1-10.el6 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_evasive-1.10.1-10.el6.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.34-1.16.amzn1 will be installed
--> Processing Dependency: httpd-tools = 2.2.34-1.16.amzn1 for package: httpd-2.2.34-1.16.amzn1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.34-1.16.amzn1.x86_64
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.5.4-6.18.amzn1 will be installed
---> Package httpd-tools.x86_64 0:2.2.34-1.16.amzn1 will be installed
--> Processing Conflict: httpd24-2.4.27-3.75.amzn1.x86_64 conflicts httpd < 2.4.27
--> Processing Conflict: httpd24-tools-2.4.27-3.75.amzn1.x86_64 conflicts httpd-tools < 2.4.27
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

rpm -qa 'httpd*'
httpd24-tools-2.4.27-3.75.amzn1.x86_64
httpd24-2.4.27-3.75.amzn1.x86_64
sudo-yum--enablerepo=epel-install-mod\u-evasive
加载的插件:优先级、更新motd、升级助手
amzn干管| 2.1 kB 00:00
amzn更新| 2.5kb 00:00
1034个包因存储库优先级保护而被排除
解决依赖关系
-->运行事务检查
--->将安装软件包mod_evasive.x86_64 0:1.10.1-10.el6
-->包:mod_evasive-1.10.1-10.el6.x86_64的处理依赖项:httpd mmn=20051115
-->运行事务检查
--->将安装程序包httpd.x86_64 0:2.2.34-1.16.amzn1
-->处理依赖项:httpd tools=2.2.34-1.16.amzn1,用于包:httpd-2.2.34-1.16.amzn1.x8664
-->处理依赖项:apr util ldap for package:httpd-2.2.34-1.16.amzn1.x86_64
-->运行事务检查
--->将安装程序包apr-util-ldap.x86_64 0:1.5.4-6.18.amzn1
--->将安装程序包httpd-tools.x86_64 0:2.2.34-1.16.amzn1
-->处理冲突:httpd24-2.4.27-3.75.amzn1.x86_64冲突httpd<2.4.27
-->处理冲突:httpd24-tools-2.4.27-3.75.amzn1.x86_64冲突httpd-tools<2.4.27
-->已完成依赖项解析
错误:httpd24工具与httpd-tools-2.2.34-1.16.amzn1.x86_64冲突
错误:httpd24与httpd-2.2.34-1.16.amzn1.x86_64冲突
您可以尝试使用--skip break来解决这个问题
您可以尝试运行:rpm-Va--nofiles--nodigest
rpm-质量保证“httpd*”
httpd24-tools-2.4.27-3.75.amzn1.x86_64
httpd24-2.4.27-3.75.amzn1.x86_64

如何在Amazon ami linux上解决此问题?

如果您运行的是Apache 2.4,请尝试yum install mod24_ssl.x86_64

我通过此url解决此问题

  • 下载此文件 在你的服务器上
  • 运行$APACHE_ROOT/bin/apxs-i-a-c mod_evasive24.c
  • 该模块将构建并安装到$APACHE_ROOT/modules中, 并加载到您的httpd.conf中
  • 重新启动Apache

  • 也许在安装mod_evasive24之前需要安装一些软件:httpd24-dev、libtool、python-devel

    谢谢您的跟进,Erkin;这很有帮助

    另外两个提示:

  • 要使用
    apxs
    ,您需要安装
    httpd24-devel
    ,如中所述
  • 建议修改
    mod_evasive
    test.pl
    )的测试脚本,以防它返回所有HTTP 400:

    第13行:
    print$SOCKET“GET/?$\uhttp/1.0\r\n主机:127.0.0.1\r\n\r\n”


  • 我不明白这是怎么回答这些问题的。安装
    mod24\u ssl.x86\u 64
    如何帮助您安装
    mod\u evasive
    ?我是不是遗漏了什么?