CentOS配置apache系统软件安装

系统 Linux
会提示CentOS配置apache安装成功,[root@localhost ]make; make install //接着输入编译这个命令很简单就是make;make install即可!接着输入开启apache服务。

CentOS配置apache系统的特性,既可作为高校计算机专业CentOS配置学习,也可以作为CentOS配置apache系统开源爱好者、CentOS配置系统用户的学习。CentOS社区不断与其他的同类社区合并,使CentOS Linux逐渐成为使用最广泛的RHEL兼容版本。CentOS Linux的稳定性不比RHEL差,唯一不足的就是缺乏技术支持,因为它是由社区发布的免费版。下面介绍CentOS配置apache。

下载软件;
CentOS配置apache 下载地址http://apache.mirror.phpchina.com/httpd/httpd-2.2.9.tar.gz

首先
[root@localhost ]# wget http://apache.mirror.phpchina.com/httpd/httpd-2.2.9.tar.gz
--00:47:30--  http://apache.mirror.phpchina.com/httpd/httpd-2.2.9.tar.gz
Resolving apache.mirror.phpchina.com... 221.194.139.225
Connecting to apache.mirror.phpchina.com|221.194.139.225|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6396996 (6.1M) [application/x-gzip]
Saving to: `httpd-2.2.9.tar.gz.1'
0% [] 36,300    41.3K/s

[root@localhost ]tar zxvf httpd-2.2.9.tar.gz
下边解压
httpd-2.2.9/srclib/apr-util/test/abts_tests.h
httpd-2.2.9/srclib/apr-util/test/data/
httpd-2.2.9/srclib/apr-util/test/dbd.c
httpd-2.2.9/srclib/apr-util/test/Makefile.in
httpd-2.2.9/srclib/apr-util/test/Makefile.win
httpd-2.2.9/srclib/apr-util/test/nw_misc.c
httpd-2.2.9/srclib/apr-util/test/nwgnuaputest
此处省略N字.
接着进入
[root@localhost ~]cd httpd-2.2.9
下边CentOS配置编译apache
[root@localhost httpd-2.2.9]./configure --prefix=/usr/local/apache --enable-track-vars --enable-cgi --with-config-file-path=/usr/local/apache/conf
下边编译这个需要一点时间的。
下边简单说说编译的这些的意思,
--prefix=/usr/local/mysql/apache 指定把CentOS配置apache安装到/usr/local/mysql/apache目录中;
--enable-cgi 支持CGI;
--with-config-file-path=/usr/local/mysql/apache/conf 指定把apache的配制文件放在/usr/local/mysql/apache/conf中;比如httpd.conf配制文件就在这个目录中;
--enable-track-vars 为启动cookie的get/post等追踪功能
差不多编译好了。会提示CentOS配置apache安装成功,
[root@localhost ]make; make install //接着输入编译这个命令很简单就是make;make install即可!
接着输入开启apache服务。
[root@localhost ] server httpd restart
到此处CentOS配置apache安装成功
删除默认页
rm -f /usr/local/apache/conf.d/welcome.conf即可看到可爱的403错误!

【编辑推荐】

  1. CentOS 5编译编译基本类系统软件(linux)
  2. CentOS GRUB负责管理启动Linux
  3. centos管理相关系统应用
  4. CentOS用户创建及FXP传输
  5. centos安装配置proftp系统软件文件
责任编辑:佚名 来源: CSDN
相关推荐

2010-01-14 14:51:07

CentOS安装配置

2012-09-24 09:59:24

Linux操作系统

2010-01-11 17:08:49

Fedora 10安装

2010-02-07 09:51:22

2010-01-14 15:45:37

CentOS 5编译

2010-01-14 13:47:30

CentOS extm

2010-02-22 17:53:14

CentOS配置

2010-01-13 14:53:46

centos配置

2010-02-25 18:09:41

Linux系统软件

2010-06-01 09:51:11

2011-07-28 09:27:29

2009-12-29 17:52:40

Ubuntu serv

2010-01-14 17:13:28

centos bind

2017-10-13 08:27:13

SCM存储架构

2010-01-15 10:36:49

CentOS yum配

2010-03-29 14:48:58

CentOS系统

2010-01-13 10:58:08

CentOS配置安装

2010-04-06 16:56:14

CentOS系统

2011-05-24 17:34:38

嵌入式系统

2011-10-11 23:03:29

IBM收购Platform Co
点赞
收藏

51CTO技术栈公众号