尝试按照此处的说明进行操作apxs 无法在 centos 上安装 mod_cloudflare当我运行命令时,rpm -ivh mod_cloudflare-1.1.1-1.x86_64.rpm
服务器返回错误:
error: Failed dependencies: apache2 is needed by mod_cloudflare-1.1.1-1.x86_64
注意..我已经安装并配置了 Apache:
yum install httpd httpd-devel
Loaded plugins: fastestmirror, priorities, security, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
Setting up Install Process
Package httpd-2.2.23-1.25.amzn1.x86_64 already installed and latest version
Package httpd-devel-2.2.23-1.25.amzn1.x86_64 already installed and latest version
Nothing to do
同样尝试安装 Apache2 会产生以下结果:
yum install Apache2
Loaded plugins: fastestmirror, priorities, security, update-motd, upgrade-helper
Loading mirror speeds from cached hostfile
* amzn-main: packages.us-east-1.amazonaws.com
* amzn-updates: packages.us-east-1.amazonaws.com
Setting up Install Process
No package Apache2 available.
Error: Nothing to do
我正在运行 Amazon Linux,有什么想法吗?
答案1
我相信这是一个 SuSE 包而不是 CentOS/RedHat 包,因为它依赖于 apache2 而不是 httpd。
在链接的帖子中,提问者似乎最终也没有安装 RPM。
您最好按照 cloudflares 网站上针对 mod_apache 的手动安装指南进行操作:
http://www.cloudflare.com/resources-downloads