在Unix服务器上安装Apache [英] Installing Apache on Unix server

查看:88
本文介绍了在Unix服务器上安装Apache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在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.

推荐答案

1. apache.org的.tar.gz文件是必须编译的源程序包. Linux的可安装二进制文件是特定于发行版的软件包类型,例如.rpm或.deb.
2.使用命令rpm -ql httpd列出从.rpm软件包安装的文件.
3. Yum是rpm的前端.如果您通过rpm命令安装了该软件包,则yum会将该软件包视为已安装,并报告无事可做".如果那不是问题,请发布yum命令的整个输出.
1. The .tar.gz file from apache.org is a source package that must be compiled. Installable binaries for Linux are distribution-specific package types like .rpm or .deb.
2. Use the command rpm -ql httpd to list the files installed from the .rpm package.
3. Yum is a front-end to rpm. If you installed the package by the rpm command, yum sees it as already installed and reports "Nothing to do". If that''s not the problem, post the entire output of the yum command.


您使用的是哪个操作系统??如果运行命令
,则占操作系统 yum install httpd php mysql
yum install httpd php pgsql.
并配置Apache/
Which OS are you using?? Cent OS if you run the command
yum install httpd php mysql or
yum install httpd php pgsql.
And config Apache/


尝试此方法 [^ ]

方法2 [
Try this Methods[^]

Method 2[^]

But I would prefer building an RPM from the tarball.

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆