问题描述
我需要在unix/linix机器上安装Apache 2.2.11服务器.
但是当我尝试从链接下载文件
http://httpd.apache.org/download.cgi/
只是源代码?哪个文件夹结构与上一个文件夹结构有很大不同?
如果我尝试从rpm包中下载httpd-2.2.2-1.x86_64.rpm
正在安装但不知道在哪里?
甚至我都不知道代码在哪里意味着很多文件在哪里?
最后,我尝试从YUM命令
YUM安装httpd
但这又在黑白方面失败了吗?
让我更清楚地说明问题.
1.在哪里可以下载tar.gz文件,该文件可以解压缩并且可以像安装apache一样工作?
2.如果我使用RPM软件包进行安装,并且显示它已安装?
在哪里可以找到代码?
3.为什么yum命令失败?
-------------------------------------------------- -------------------------------------------------- --------
Thakns寻求帮助.
我使用
卸载了以前的版本百胜删除httpd
rpm -e httpd --nodeps
然后我再次使用
安装了完整的软件百胜安装httpd
有效.之后,我安装了
百胜安装httpd-manual
百胜安装mod_ssl
-------------------------------------------------- --------------
但是我的问题没什么不同.
在我以前的版本(2.2.11)中,有以下文件夹.
1. bin
2.构建
3. cgi-bin
4. conf
5.错误
6. htdocs
7.图标
8.包括
9. lib
10.日志
11.男人
12.手册
13.模块
apache的版本是apache 2.2.11
-------------------------------------------------- -----------------
但是我找不到这样的版本,所以我尝试了Apache 2.2.17.
来自文件httpd-2.2.17.tar.gz.我不知道我们是否将此文件称为二进制文件.
解压缩后,它具有以下文件夹结构
1.构建
2. doc
3.包括
4.模块
5. os
6.服务器
7. srclib
8.支持
9.测试
如果是编译版本,为什么与2.2.11相比有很大不同?
我想要与以前安装的结构相同的Apache吗?
我该怎么办?
因为从yum命令安装不提供任何文件夹结构?
那我也不明白为什么吗?
请帮帮我.
I need to install Apache 2.2.11 server on unix/linix machine.
But when I am trying to download the file from link
http://httpd.apache.org/download.cgi/
It is just source code? Which has very different folder structure as I have previous one?
If I try to download from rpm package httpd-2.2.2-1.x86_64.rpm
It is getting installed but dont know where?
Even I dont know where the code meands lots of files are?
Lastly I tried from YUM command
YUM install httpd
But Again it is failing in b/w wht to do?
Let me put the question more clearly.
1. Where can I downloaded the file tar.gz which can be unzipped and work like I have installed the apache?
2. If I do it with RPM package and it is showing it is instlled?
Where I can find the code?
3. Why yum command is failing?
------------------------------------------------------------------------------------------------------------
Thakns for the help.
I uninstalled the previous version using
yum remove httpd
rpm -e httpd --nodeps
then I again installed the complete s/w using
yum install httpd
It worked. After that I installed
yum install httpd-manual
yum install mod_ssl
----------------------------------------------------------------
But My problem is little different.
In my previous apache (2.2.11) there were following folders.
1. bin
2. build
3. cgi-bin
4. conf
5. error
6. htdocs
7. icons
8. include
9. lib
10. logs
11. man
12. manual
13. modules
Version of apache was apache 2.2.11
-------------------------------------------------------------------
But I am not able to find such version so I tried apache 2.2.17.
from file httpd-2.2.17.tar.gz. I dont know if we call this file as binary.
After unzipping it it has folder structure as following
1. build
2. doc
3. include
4. module
5. os
6. server
7. srclib
8. support
9. test
If it is compiled version why it is that much different from 2.2.11??
I want same structure of apache as it was installed before?
Wht should I do?
Because installation from yum command does not provide any folder structure?
That also I dont understant why?
Please help me out.
推荐答案
root@localhost# yum update
root@localhost# yum groupinstall "Development Tools"
root@localhost# yum install rpmdevtools rpm-build redhat-rpm-config openssl-devel apr-devel apr-util-devel openldap-devel db4-devel expat-devel pcre-devel distcache distcache-devel
只要在系统中已经存在,就不是必须安装yum install中提到的那些软件包.
创建一个用户以运行rpmbuild.
Installing those packages mentioned in yum install are not mandatory as long as they already exist in the system.
Create a user to run the rpmbuild.
root@localhost# /usr/sbin/useradd rpmbuilder
root@localhost# su - rpmbuilder
这篇关于在Unix服务器上安装Apache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!