码迷,mamicode.com
首页 > Web开发 > 详细

redhat7安装apache

时间:2019-03-18 14:01:28      阅读:305      评论:0      收藏:0      [点我收藏+]

标签:err   https   wget   top   figure   mct   ++   usr   apache2   

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

标签:err   https   wget   top   figure   mct   ++   usr   apache2   

原文地址:https://www.cnblogs.com/yuanqc/p/10551462.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!