安装mod_ssl问题apache 2.4 aws linux

时间:2016-10-24 23:24:09

标签: apache amazon-web-services centos redhat apache2.4

使用aws Linux。当我尝试安装mod_ssl时,使用ttpd-tools-2.2.31-1.8.amzn1.x86_64和httpd-2.2.31-1.8.amzn1.x86_64给出了冲突错误。试过yum删除,但它没有工作。当我做一个yum列表时,旧的httpd版本没有被列出。不知道为什么会这样。任何人都可以帮我解决这个问题。

 [root@ip-61 ec2-user]# yum install mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.31-1.8.amzn1 will be installed
--> Processing Dependency: httpd = 2.2.31-1.8.amzn1 for package: 1:mod_ssl-2.2.31-1.8.amzn1.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: 1:mod_ssl-2.2.31-1.8.amzn1.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.31-1.8.amzn1 will be installed
--> Processing Dependency: httpd-tools = 2.2.31-1.8.amzn1 for package: httpd-2.2.31-1.8.amzn1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.31-1.8.amzn1.x86_64
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.4.1-4.17.amzn1 will be installed
---> Package httpd-tools.x86_64 0:2.2.31-1.8.amzn1 will be installed
--> Processing Conflict: httpd24-2.4.18-1.64.amzn1.x86_64 conflicts httpd < 2.4.18
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package httpd24.x86_64 0:2.4.18-1.64.amzn1 will be updated
---> Package httpd24.x86_64 0:2.4.23-1.66.amzn1 will be an update
--> Processing Dependency: httpd24-tools = 2.4.23-1.66.amzn1 for package: httpd24-2.4.23-1.66.amzn1.x86_64
--> Running transaction check
---> Package httpd24-tools.x86_64 0:2.4.18-1.64.amzn1 will be updated
---> Package httpd24-tools.x86_64 0:2.4.23-1.66.amzn1 will be an update
--> Processing Conflict: httpd24-2.4.23-1.66.amzn1.x86_64 conflicts httpd < 2.4.23
--> Processing Conflict: httpd24-tools-2.4.23-1.66.amzn1.x86_64 conflicts httpd-tools < 2.4.23
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.31-1.8.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.31-1.8.amzn1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@ip-61 ec2-user]# yum l

[root@ip-61 ec2-user]# yum list installed | grep -in httpd
120:httpd24.x86_64                    2.4.18-1.64.amzn1                @amzn-main
121:httpd24-tools.x86_64              2.4.18-1.64.amzn1                @amzn-main


[root@ip-61 ec2-user]# yum remove httpd-tools-2.2.31-1.8.amzn1.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: httpd-tools-2.2.31-1.8.amzn1.x86_64
No Packages marked for removal

[root@ip-61 ec2-user]# yum remove httpd-2.2.31-1.8.amzn1.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
No Match for argument: httpd-2.2.31-1.8.amzn1.x86_64
No Packages marked for removal
[root@ip-61 ec2-user]#

] #yum list安装| grep -in httpd 120:httpd24.x86_64 2.4.18-1.64.amzn1 @ amzn-main 121:httpd24-tools.x86_64 2.4.18-1.64.amzn1 @ amzn-main

4 个答案:

答案 0 :(得分:4)

基本上:sudo yum install mod24_ssl

尽管如此,请注意:https://stackoverflow.com/a/21781886

答案 1 :(得分:0)

您可以使用以下命令

yum install mod24_ssl.x86_64

它将安装mod_ssl而没有任何依赖项冲突。

答案 2 :(得分:0)

我怀疑您安装了cpanel或plesk或directadmin之类的东西,他们在/etc/yum.conf中添加了一堆exclude =行,例如:

exclude=apache* httpd* mod_* mysql* MySQL* mariadb* da_* *ftp* exim* sendmail* php* bind-chroot*

,并停止安装各种软件包。他们之所以这样做,是因为他们提供了许多中央CentOS软件包的自己的版本,并且希望阻止CentOS的覆盖。一旦安装了这样的Web面板,就更改了系统的运行方式,您必须去找他们询问如何安装,因为普通的CentOS方式最终会破坏其他已安装的软件包。

我在互联网上找到了这个答案

答案 3 :(得分:-1)

尝试使用

重新安装

yum remove&lt;所有列出的包&gt;

yum install mod_ssl

相关问题