我正在尝试从REMI repo安装Apache 2.4,但无论我尝试什么,我得到的是Apache 2.2
我已经安装并启用了EPEL和REMI回购:
# yum repolist enabled
repo id repo name status
base CentOS-6 - Base 6,696
epel Extra Packages for Enterprise Linux 6 - x86_64 12,358
extras CentOS-6 - Extras 64
remi Remi's RPM repository for Enterprise Linux 6 - x86_64 4,047
remi-php56 Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64 417
remi-safe Safe Remi's RPM repository for Enterprise Linux 6 - x86_64 1,768
updates CentOS-6 - Updates 974
然后我使用:
# yum install --enablerepo=remi httpd
还尝试过:
# yum install --enablerepo=remi-php56,remi,remi-safe,epel httpd
但在这两种情况下我都只获得Apache 2.2:
Dependencies Resolved
===============================================================================================
Package Arch Version Repository Size
===============================================================================================
Installing:
httpd x86_64 2.2.15-56.el6.centos.3 updates 834 k
Installing for dependencies:
httpd-tools x86_64 2.2.15-56.el6.centos.3 updates 79 k
Transaction Summary
===============================================================================================
Install 2 Package(s)
Total download size: 913 k
Installed size: 3.1 M
Is this ok [y/N]:
仅使用更新repo而不是remi。
我已检查是否已安装apache:
# httpd -v
bash: httpd: command not found
# yum remove httpd*
Package(s) httpd* available, but not installed.
No Packages marked for removal
我还缺少其他东西吗?如何使用REMI回购?它已启用但由于某种原因不活跃
答案 0 :(得分:1)
remi存储库主要用于 PHP ,并且不提供Apache HTTP服务器,而是使用系统版本。
主要是因为基本存储库中的默认版本在大多数情况下都得到良好维护,保护和足够。
请注意,centos-sclo repository中提供了httpd24 SCL(软件集合),它是RHSCL的克隆。