安装 mod_ssl 亚马逊 linux
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19646150/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
installing mod_ssl amazon linux
提问by Leandro Garcia
I'm simply trying to install mod_ssl
on a CentOS server. Doing a straightforward sudo yum install mod_ssl
would return an error:
我只是想mod_ssl
在 CentOS 服务器上安装。做一个简单的sudo yum install mod_ssl
将返回一个错误:
Error: httpd24-tools conflicts with httpd-tools-2.2.25-1.0.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.25-1.0.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
错误: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
I tried to remove httpd-tools
by: sudo yum remove httpd-tools-2.2.25-1.0.amzn1.x86_64
but no luck. Is there any things that I missed?
我试图通过以下方式删除httpd-tools
:sudo yum remove httpd-tools-2.2.25-1.0.amzn1.x86_64
但没有运气。有什么我错过的吗?
EDIT:
编辑:
I did sudo yum -v remove httpd-tools-2.2.25-1.0.amzn1.x86_64
and outputs this:
我做了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
Doing yum search mod_ssl
outputs this:
这样做yum search mod_ssl
输出:
采纳答案by Bas Peeters
Try this:
尝试这个:
sudo yum install mod24_ssl
If you run into another incompatibility like this in the future, use yum search all
. For example:
如果以后遇到其他类似的不兼容问题,请使用yum search all
. 例如:
yum search all mod_ssl
Returns:
返回:
mod_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
mod24_ssl.x86_64 : SSL/TLS module for the Apache HTTP Server
回答by frank-dspeed
I've got the same problem and solved it simply by compiling Apache version 2.4.6from source with the Amazon APR Develpackage 1.4.6 that is in the AMI and then copied the newly compiled mod_ssl.so
to the /etc/httpd/modules
directory, that's it.
我遇到了同样的问题,并通过使用 AMI 中的Amazon APR Devel包 1.4.6从源代码编译 Apache 版本 2.4.6来解决它,然后将新编译的复制到目录中,就是这样。mod_ssl.so
/etc/httpd/modules
Here you can downloadthe mod_ssl.so
for Amazon Linux Apache 2.4.6 x64 MOD_SSLPackage.
在这里,您可以下载的mod_ssl.so
对亚马逊的Linux的Apache 2.4.6 64 MOD_SSL包。
回答by Pochi
You can install any missing modules by using APXS
您可以使用 APXS 安装任何缺少的模块
http://httpd.apache.org/docs/2.2/programs/apxs.html
http://httpd.apache.org/docs/2.2/programs/apxs.html
Download that package, upload to your server, follow the instructions normally. If you run into errors it just means you have to install the missing components. In my case i had to install libtools and openssl.
下载该软件包,上传到您的服务器,按照正常说明进行操作。如果您遇到错误,则仅意味着您必须安装缺少的组件。就我而言,我必须安装 libtools 和 openssl。
Just use something like:
只需使用类似的东西:
sudo yum install libtools
须藤 yum 安装 libtools
I believe you also need apache developer tools, you can easily find the installable things by doing
我相信你还需要apache开发工具,你可以很容易地找到可安装的东西
sudo yum search httpd-dev
须藤 yum 搜索 httpd-dev
for example (not quite sure about this one)
例如(不太确定这个)
lastly just follow the instructions from the link i pasted at the very beginning.
最后,只需按照我一开始粘贴的链接中的说明进行操作即可。
回答by namnh
this one may help you :
这个可以帮助你:
In Ubuntu 18.04, please search mod_ssl by
apt search mod_ssl
then you see apache2-ssl-dev
, this one is what you need.
在 Ubuntu 18.04 中,请搜索 mod_ssl ,
apt search mod_ssl
然后您会看到apache2-ssl-dev
,这就是您所需要的。