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
# 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
開始編譯源碼包 可讓計算機看得懂的語言
相關文章
相關標籤/搜索