apache服务器安装

下载httpd-2.2.19.tar.gz

tar xzvf httpd-2.2.19.tar.gz

cd httpd-2.2.19

#设置安装目录和参数设置

./configure --prefix=/usr/local/apache --enable-so

#编译安装apache

make

make install


cd /usr/local/apache/bin/

#该命令用来启用apache

apachectl start 

#验证:访问能够打开apache主页

http://ip

猜你喜欢

转载自qindyyx.iteye.com/blog/1264726