Linux下Apache WEB服务器构建

源码安装Apache

官方下载目前稳定版本,http://httpd.apache.org/,解压安装如下,安装apache之前,需要行安装apr apr-util

[root@localhost local]# wget http://www.apache.org/dist/httpd/httpd-2.2.34.tar.bz2

 [root@localhost local]# tar jvf httpd-2.2.34.tar.bz2

[root@localhost local]# cd httpd-2.4.29

[root@localhost local]# ls

[root@localhost httpd-2.4.29]# yum install apr apr-util apr-devel apr-util-devel

[root@localhost httpd-2.4.29]# ./configure --prefix=/usr/local/apache2 预编译

[root@localhost httpd-2.4.29]# make && make install   编译和安装

[root@localhost bin]# cd /usr/local/apache2/bin/  

[root@localhost bin]# ./apachectl start  启动apache服务

你可能感兴趣的:(Linux下Apache WEB服务器构建)