redhat7安装apache
Posted yuanqc
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhat7安装apache相关的知识,希望对你有一定的参考价值。
1. wget http://mirrors.hust.edu.cn/apache/httpd/httpd-2.4.38.tar.bz2
2. tar -xjvf httpd-2.4.38.tar.bz2
报错:Error is not recoverable: exiting now 解决:yum -y install bzip2
3. yum install apr apr-devel apr-util apr-util-devel -y
wget https://ftp.pcre.org/pub/pcre/pcre-8.00.tar.bz2
cd pcre-8.00
./configure
make
make install
cd ..
4. cd httpd-2.4.38
./configure --prefix=/usr/local/apache2/ --enable-rewrite --enable-so
make
make install
报错: 解决:yum install gcc gcc-c++ autoconf automake
5. /usr/local/apache2/bin/apachectl start
关闭SELinux,防火墙
setenforce 0
systemctl stop firewalld.service
以上是关于redhat7安装apache的主要内容,如果未能解决你的问题,请参考以下文章