centos6下安装php-fpm

 装好centos6系统后,自带的源里面没有php-fpm,很多时候我们需要php-fpm对php进行管理,通过下面方法可以很快就安装好。centos6下安装php-fpm, centos6 yum install php-fpm安装配置

1.配置remi源
rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi
yum install yum-priorities
vi /etc/yum.repos.d/remi.repo
[remi]
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
 

2.安装php-fpm
yum install php-fpm php-cli php-gd php-mysql mysql-server
转自:http://kexl908.blog.51cto.com/605006/806892 

 

你可能感兴趣的:(php-fpm)