2

我在将 mod_ssl 安装到我的 AWS Apache 实例时遇到问题...

[ec2-user@ip-172-31-18-185 ~]$ yum install mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
You need to be root to perform this command.
[ec2-user@ip-172-31-18-185 ~]$ sudo yum install mod_ssl
Loaded plugins: priorities, update-motd, upgrade-helper
Resolving Dependencies
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.34-1.16.amzn1 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: 1:mod_ssl-2.2.34-1.16.amzn1.x86_64
--> Processing Dependency: httpd = 2.2.34-1.16.amzn1 for package: 1:mod_ssl-2.2.34-1.16.amzn1.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.33-2.78.amzn1.x86_64 conflicts httpd < 2.4.33
--> Processing Conflict: httpd24-tools-2.4.33-2.78.amzn1.x86_64 conflicts httpd-tools < 2.4.33
--> 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
[ec2-user@ip-172-31-18-185 ~]$

我试过运行 sudo yum install 24mod_ssl 无济于事?它说没有可用的包 24mod_ssl。

我能做些什么?

4

2 回答 2

8

如果有人错过了上面 Andra 的评论,就像我第一次看到这篇文章时所做的那样:

要解决冲突,您必须安装以下模块:

须藤百胜安装 mod24_ssl.x86_64

于 2018-07-19T17:27:25.640 回答
1

您的 apache 模块有冲突。请参阅此处 httpd24-tools 与 httpd-tools-2.2.34-1.16.amzn1.x86_64 冲突。看起来您选择了预安装的 apache AMI 并在其上再次安装了 apache。

于 2018-05-14T11:54:56.627 回答