配置yum源  参考:https://www.cnblogs.com/shione/p/7492735.html

追加CentOS 6.5的epel及remi源。

# rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

以下是CentOS 7.0的源。

# yum install epel-release
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

使用yum list命令查看可安装的包(Packege)。

# yum list --enablerepo=remi --enablerepo=remi-php56 | grep php

安装PHP5.6

yum源配置好了,下一步就安装PHP5.6。

yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-gd php-redis

用PHP命令查看版本。

# php --version

安装PHP-fpm扩展

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm

 

启动php-fpm 

service  php-fpm start 

完美,手工!

 

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2021-05-29
  • 2021-10-25
  • 2021-11-18
  • 2022-01-26
  • 2021-07-10
  • 2022-12-23
猜你喜欢
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案