GNU/Linux >> LINUX-Kenntnisse >  >> Cent OS

Centos – Installieren Sie Apache 2.4 auf Centos mit Yum?

Ich brauche Apache 2.4 in CentOS, weil mit Apache 2.2 mod_proxy_wstunnel Ist nicht möglich. Ich habe das versucht, aber leider ist es für RHEL. Nach der Installation kann ich Apache 2.4 nicht ausführen.

Kann mir bitte jemand zeigen, wie man einen vollständig funktionierenden Apache 2.4 in CentOS installiert?

BEARBEITEN:

# yum list installed | grep httpd
Failed to set locale, defaulting to C
httpd.x86_64                         2.2.15-30.el6.centos       @updates        
httpd-tools.x86_64                   2.2.15-30.el6.centos       @updates        
httpd24.x86_64                       1-6.el6                    @epel-httpd24   
httpd24-apr.x86_64                   1.4.8-2.el6                @epel-httpd24   
httpd24-apr-util.x86_64              1.5.2-5.el6                @epel-httpd24   
httpd24-httpd.x86_64                 2.4.6-5.el6                @epel-httpd24   
httpd24-httpd-tools.x86_64           2.4.6-5.el6                @epel-httpd24   
httpd24-mod_ssl.x86_64               1:2.4.6-5.el6              @epel-httpd24   
httpd24-runtime.x86_64               1-6.el6                    @epel-httpd24   

Akzeptierte Antwort:

Apache 2.4 auf CentOS:

Schritt 1:

cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo

Schritt 2:

yum install httpd24.x86_64

Schritt 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

HINWEIS:Konfigurationsdateien befinden sich in:/opt/rh/httpd24/root/etc/httpd

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

BEARBEITEN: falls Sie Apache 2.2 ausschalten möchten

$ chkconfig httpd off
$ chkconfig --list | grep httpd
httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
httpd24-httpd   0:off   1:off   2:off   3:off   4:off   5:off   6:off

BEARBEITEN 2: http://wiki.apache.org/httpd/PHP-FPM

yum install php-fpm
/etc/init.d/php-fpm start

Cent OS
  1. So installieren Sie YUM auf RHEL 8 / CentOS 8

  2. So installieren Sie Apache Cassandra unter CentOS 8

  3. Installieren Sie Nginx auf CentOS 6 über YUM

  4. So installieren Sie Apache Kafka unter CentOS 8

  5. So installieren Sie das mod_pagespeed-Modul für Apache in RHEL, CentOS und Fedora mit YUM

So installieren Sie Apache CouchDB auf CentOS 7

So installieren Sie Apache ServiceMix unter CentOS 7

So installieren Sie Apache Cassandra in CentOS

Installieren Sie Apache OpenOffice auf CentOS 8

So installieren Sie elgg unter CentOS 8

So installieren Sie Nginx mit dem Yum-Befehl unter CentOS