安装mod_ssl amazon linux

Lea*_*cia 36 linux ssl centos amazon-web-services

我只是想mod_ssl在CentOS服务器上安装.直截了当sudo yum install mod_ssl会返回错误:

错误:httpd24-tools与httpd-tools-2.2.25-1.0.amzn1.x86_64冲突

错误:httpd24与httpd-2.2.25-1.0.amzn1.x86_64冲突

您可以尝试使用--skip-broken来解决问题

您可以尝试运行:rpm -Va --nofiles --nodigest

我试图删除httpd-tools:sudo yum remove httpd-tools-2.2.25-1.0.amzn1.x86_64但没有运气.有没有我错过的东西?

编辑:

我做了sudo yum -v remove httpd-tools-2.2.25-1.0.amzn1.x86_64并输出了这个:

Yum Version: 3.2.29
rpmdb time: 0.000
Setting up Remove Process
No Match for argument: httpd-tools-2.2.25-1.0.amzn1.x86_64
Setting up Package Sacks
amzn-main                                                                                                                         | 2.1 kB     00:00
amzn-updates                                                                                                                      | 2.3 kB     00:00
pkgsack time: 0.330
Package(s) httpd-tools-2.2.25-1.0.amzn1.x86_64 available, but not installed.
No Packages marked for removal
Run Code Online (Sandbox Code Playgroud)

yum search mod_ssl输出:

在此输入图像描述

Bas*_*ers 99

试试这个:

sudo yum install mod24_ssl
Run Code Online (Sandbox Code Playgroud)

如果您将来再次遇到其他不兼容问题,请使用yum search all.例如:

yum search all mod_ssl
Run Code Online (Sandbox Code Playgroud)

返回:

mod_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
mod24_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
Run Code Online (Sandbox Code Playgroud)