yum 里面是没有nginx的。所以你要在官网下载源码包进行编译安装。官网下载地址是http:// nginx.org/en/download.htmlphp-fpm是可以通过yum安装的,你可以使用: yum install php-fpm -y