标签:http os ar on art ef 工作 linux as
1、进入work目录下:cd /usr/local/work
(如没有则自己新建,命令:mkdir /usr/local/work)
2、在woke目录下从网站下载apache并解压:
wget http://dev.xiaonei.com/apache-mirror/httpd/httpd-2.0.63.tar.gz
解压:tar zxvf httpd-2.0.63.tar.gz
3、进入httpd-2.0.63目录:cd httpd-2.0.63
4、建立makefile,并将Apache安装到/usr/local/apache2目录下:
./configure -prefix=/usr/local/apache2 -enable-module=so (/configure前有一个点“.”的)
5、开始编译:make
6、开始安装Apache到work目录中:
make install
7、至此Apache的安装工作完成,可以在每次启动系统时通过如下命令启动或重新启动Apache服务:
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl restart
8、打开浏览器,在地址栏输入“http://localhost”出现“It works!”或apache图标的漂亮界面,说明apache安装成功!
标签:http os ar on art ef 工作 linux as
原文地址:http://www.cnblogs.com/douyamv/p/4051865.html