Apache
解压包sudotarxzfv httpd-2.0.59.tar.gz –C /usr/src
进入解压目录sudocd/usr/src/httpd-2.0.59
安装必要的保存sudo apt-get install build-essential
编译前的配置sudo ./configure --prefix=/usr/local/apache2
--enable-module=most --enable-rewrite --enable-shared=max --enable-so
编译sudo make
安装sudo make install
建立工作组sudogroupadd apache
建立用户并加入到工作组sudouseradd -g apache apache
给用户设置密码sudopasswd apache
给用户设置权限sudochown -R apache:apache/usr/local/apache2 修改配置文件sudo vi /usr/local/apache2/conf/httpd.conf
#ServerName http://www.doczj.com/doc/6f3b874af7ec4afe05a1df03.html:80
》》ServerName*:80
sudo/usr/local/apache2/bin/apachectl start
wq
启动apache服务/usr/local/apache/bin/apachectl start
测试http://localhost