---
title: "Compiling and Installing Apache with Redhat"
author: "li.feixiang"
date: "2012-02-08T18:00:11Z"
tags: []
categories: ["开源软件"]
slug: "compiling-and-installing-apache-with-redhat"
draft: false
lastmod: "2012-02-08T18:00:11Z"
id: 1397975
url: "https://felixli.iteye.com/blog/1397975"
---

Download   $ lynx http://httpd.apache.org/download.cgi

Extract $ gzip -d httpd-NN.tar.gz

$ tar xvf httpd-NN.tar

$ cd httpd-NN

Configure $ ./configure --prefix=PREFIX

Compile $ make

Install $ make install

Customize $ vi PREFIX/conf/httpd.conf

Test $ PREFIX/bin/apachectl -k start