如何在 CentOS 上升级 Nginx 并安装 php-fpm

如何在 CentOS 上升级 Nginx 并安装 php-fpm

我想通过 Yum 升级 Nginx,并像往常一样安装 PHP-FPM。大多数博客和在线资源都使用 EPEL 和 REMI 存储库,但它们在我的服务器上不起作用。

我的操作系统信息:

Linux SUBDOMAIN.EXAMPLE.com 2.6.18-238.9.1.el5 #1 SMP 
Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

Linux version 2.6.18-238.9.1.el5 ([email protected]) 
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP 
Tue Apr 12 18:10:13 EDT 2011

我的 Repolist:

> yum repolist

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.steadfast.net
 * remi: mirrors.mediatemple.net
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
repo id                          repo name                                                                             status
addons                           CentOS-5 - Addons                                                                               0
base                             CentOS-5 - Base                                                                         3,490+172
centosplus                       CentOS-5 - Plus                                                                                66
contrib                          CentOS-5 - Contrib                                                                              0
epel                             Extra Packages for Enterprise Linux 5 - x86_64                                        6,587+1,147
extras                           CentOS-5 - Extras                                                                          233+32
nginx                            nginx repo                                                                                     59
pgdg90                           PostgreSQL 9.0 5 - x86_64                                                                   201+4
remi                             Les RPM de remi pour Enterprise Linux 5 - x86_64                                        191+1,451
s3tools                          Tools for managing Amazon S3 - Simple Storage Service (RHEL_5)                                  2
updates                          CentOS-5 - Updates                                                                        449+128
repolist: 11,278

我的机器上安装的 NGINX 可能不是通过 Yum 进行的,我想我是从源代码构建的。Nginx 作为主服务器运行,代理到 Apache,但现在我希望转移到 Nginx 内部的完全 PHP-FPM 系统。

我错过了什么?

> yum update nginx 

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: mirror.steadfast.net
 * remi: mirrors.mediatemple.net
Excluding Packages in global exclude list
Finished
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Setting up Update Process
Package(s) nginx available, but not installed.
No Packages marked for Update

相关内容