将安装包上传到虚拟机
[root@localhost ~]# rz
[root@localhost ~]# ls
anaconda-ks.cfg Documents httpd-2.2.17.tar.gz Music Public Videos
Desktop Downloads initial-setup-ks.cfg Pictures Templates
[root@localhost ~]# tar zxf httpd-2.2.17.tar.gz -C /usr/src/
cd到安装包下
[root@localhost ~]# cd /usr/src/httpd-2.2.17/
[root@localhost httpd-2.2.17]# ls
ABOUT_APACHE buildconf emacs-style LAYOUT NOTICE ROADMAP
acinclude.m4 CHANGES httpd.dsp libhttpd.dsp NWGNUmakefile server
Apache.dsw config.layout httpd.spec LICENSE os srclib
build configure include Makefile.in README support
BuildAll.dsp configure.in INSTALL Makefile.win README.platforms test
BuildBin.dsp docs InstallBin.dsp modules README-win32.txt VERSIONING
解析
[root@localhost httpd-2.2.17]# ./configure --prefix=/usr/local/httpd
编译安装httpd
[root@localhost httpd-2.2.17]# make && make install
cd到httpd下
[root@localhost httpd-2.2.17]# cd /usr/local/httpd/
建立软链接