木子设计

LZG个人博客

本人专注于web领域开发,博客主要记录学习php/html/css/javascript,框架Yaf/Laravel/TP/CI,Linux及一些常用工具过程中遇到的问题及解决心得,希望对技术推广及他人学习提供薄力。

centos 6 安装apache2.4

发布时间:2016-08-28 15:46:17


Apache 2.4 on CentOS:

Step 1:
cd /etc/yum.repos.d/

wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo


Step 2:

yum install httpd24.x86_64


Step 3:
$ /opt/rh/httpd24/root/usr/sbin/httpd -version
Server version: Apache/2.4.6 (Red Hat)
Server built: Sep 25 2013 05:25:46
NOTE: config files are in: /opt/rh/httpd24/root/etc/httpd

$ ls
conf conf.d conf.modules.d logs modules run

服务执行路径:/opt/rh/httpd24/root/usr/sbin/httpd -k start