linux安装apache2

[root@localhost src]# ls httpd-2.2.19.tar.gz
httpd-2.2.19.tar.gz
[root@localhost src]# tar zxvf httpd-2.2.19.tar.gz

[root@localhost src]# cd httpd-2.2.19
[root@localhost src]# ./configure  --prefix=/home/web/apache/ --enable-shared=max --enable-module=rewirte --enable-module=so

[root@localhost httpd-2.2.19]# make
[root@localhost httpd-2.2.19]# make install

[root@localhost httpd-2.2.19]/home/web/apache/bin/apachectl start

从浏览器访问apache所在的IP,默认为80端口,http:/localhost

如果出现

IT WORKS

说明apache已经安装完毕

猜你喜欢

转载自dsbjoe.iteye.com/blog/1125541