1.download
[root@localhost ]# lynx http://www.apache.org/dist/httpd/httpd-2.2.19.tar.gz
2.extract
[root@localhost ]# gzip -d httpd-2.2.19.tar.gz
[root@localhost ]# tar -xvf httpd-2.2.19.tar
3.Configure as default
[If you need customed configure, please run "./configure --help" for details. ]
[root@localhost ]# ./configure
4.Compile
[for this step, maybe you need install gcc first. You can run "yum install gc" to install gc ]
[root@localhost ]# make
5.Install
[root@localhost ]# make install
6.Customize
[root@localhost ]# vi PREFIX/conf/httpd.conf
7.start and stop
[root@localhost ]# PREFIX/bin/apachectl start
[root@localhost ]# PREFIX/bin/apachectl stop
时间:2011-10-18 10:29
来源:LinuxIDC.com
作者:LinuxIDC.com
原文链接