Apache源码安装--httpd-2.2.34

一、下载源码包

二、将源码包移动/usr/src/目录

三、解压源码包,并进入目录:tar -xzvf httpd-2.2.34.tar.gz,cd httpd-2.2.34

四、安装依赖包:yum install apr apr-devel apr-util apr-util-devel -y

五、预编译:./configure --prefix=/usr/local/apache2/ --enable-rewrite --enable-so

六、make -j4 && make -j4 install

七、/usr/local/apache2/bin/apachectl start

posted @ 2018-12-05 09:48  zhj5551  阅读(987)  评论(0编辑  收藏  举报