你的位置:首页 > 操作系统

[操作系统]Linux httpd源码编译安装


# wget http://apache.fayea.com/httpd/httpd-2.2.31.tar.bz2去官网下载源码包

# mv httpd-2.2.31.tar.bz2 /usr/local/src/为方便管理源码包 统一放在一个文件下

# tar -jxvf httpd-2.2.31.tar.bz2# cd httpd-2.2.31# lsABOUT_APACHE  config.log   httpd.mak    Makefile    READMEacinclude.m4  config.nice  httpd.spec   Makefile.in  README.platformsApache.dsw   config.status include     Makefile.win  README-win32.txtbuild     configure   INSTALL     modules    ROADMAPBuildAll.dsp  configure.in  InstallBin.dsp modules.c   serverBuildBin.dsp  docs      LAYOUT     modules.lo   srclibbuildconf   emacs-style  libhttpd.dep  modules.o   supportbuildmark.o  httpd     libhttpd.dsp  NOTICE     testCHANGES    httpd.dep   libhttpd.mak  NWGNUmakefile VERSIONINGconfig.layout httpd.dsp   LICENSE     os

#vim INSTALL#vim README查看源码包的安装和说明文档

# ./configure --prefix=/usr/local/apache安装源码包 源码包统一安装在一个文件下 如local

# echo $?0安装完成后 输出下 得到0 则成功

#make开始编译源码包 可以让计算机看得懂的语言