我在将 mod_ssl 安装到我的 AWS Apache 实例时遇到问题
Posted
技术标签:
【中文标题】我在将 mod_ssl 安装到我的 AWS Apache 实例时遇到问题【英文标题】:I am having problems installing mod_ssl onto my AWS Apache instance 【发布时间】:2018-10-24 00:45:00 【问题描述】:...
[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。
我能做什么?
【问题讨论】:
mod24_ssl,不是 24mod。另见https://***.com/questions/19646150/installing-mod-ssl-amazon-linux/21781886#21781886 【参考方案1】:您的 apache 模块有冲突。看这里 httpd24-tools 与 httpd-tools-2.2.34-1.16.amzn1.x86_64 冲突。看起来您选择了预安装的 apache AMI 并在其上再次安装了 apache。
【讨论】:
【参考方案2】:如果有人错过了上面 Andra 的评论,就像我第一次看到这篇文章时所做的那样:
要解决冲突,您需要安装以下模块:
sudo yum install mod24_ssl.x86_64
【讨论】:
以上是关于我在将 mod_ssl 安装到我的 AWS Apache 实例时遇到问题的主要内容,如果未能解决你的问题,请参考以下文章
Linux_install mod_ssl openssl apache