[英]Upgrading of Apache 2.2.15 to Apache 2.2.29 on CentOS 6.6 64 bit
[英]How to upgrade apache 2.2.15 to apache 2.4.12 on CentOS 6.6?
我試過了,但對我不起作用。
CentOS 6.6 上的 Apache 2.4:
第1步:
cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo
第2步:
yum install httpd24.x86_64
第 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
EDIT: in case you want to switch off Apache 2.2
$ 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
EDIT 2: http://wiki.apache.org/httpd/PHP-FPM
yum install php-fpm
/etc/init.d/php-fpm start
有沒有人知道解決辦法,請告訴我。
最好是您自己從 CentOS 6.6 系統上的 Apache 源代碼構建它。
編譯和安裝 Apache 2.4:
http://httpd.apache.org/docs/current/install.html
在構建期間記下配置行,以便確保它包含您想要的所有模塊(如 mod_ssl...等)。 有關可用於位於此處的configure
行的詳細信息http://httpd.apache.org/docs/current/programs/configure.html
$ CC="pgcc" CFLAGS="-O2" \
./configure --prefix=/sw/pkg/apache \
--enable-ldap=shared \
--enable-lua=shared
如果您想要自己的 RPM,請使用您自己的自定義創建一個 SPEC 文件。
最簡單的方法是安裝 SCL 版本,如下所述:
https://unix.stackexchange.com/questions/412122/how-to-update-apache-to-2-4-29-using-scl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.