# 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 # ls ABOUT_APACHE config.log httpd.mak Makefile README acinclude.m4 config.nice httpd.spec Makefile.in README.platforms Apache.dsw config.status include Makefile.win README-win32.txt build configure INSTALL modules ROADMAP BuildAll.dsp configure.in InstallBin.dsp modules.c server BuildBin.dsp docs LAYOUT modules.lo srclib buildconf emacs-style libhttpd.dep modules.o support buildmark.o httpd libhttpd.dsp NOTICE test CHANGES httpd.dep libhttpd.mak NWGNUmakefile VERSIONING config.layout httpd.dsp LICENSE os
#vim INSTALL #vim README 查看源码包的安装和说明文档
# ./configure --prefix=/usr/local/apache 安装源码包 源码包统一安装在一个文件下 如local
# echo $? 0 安装完成后 输出下 得到0 则成功
#make 开始编译源码包 可以让计算机看得懂的语言
时间: 2024-10-11 23:18:28