cd /etc/yum.repos.d/
yum -y install epel-release                                      #<===安装centos7下php5.6的epel和remi源
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum list --enablerepo=remi --enablerepo=remi-php56 | grep php             #<===查看php-5.6相关包
yum -y install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml php-bcmath php-process php-gd php-common
yum list installed |grep php                       #<===查看yum安装的软件包
rpm -ql php-fpm.x86_64                           #<===查看php软件包所在路径
php -version                                             #<===查看PHP版本安装是否正确
systemctl start php-fpm
systemctl enable php-fpm
lsof -i :9000

  

 

相关文章:

  • 2021-11-15
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2022-02-09
  • 2021-11-17
  • 2021-09-17
相关资源
相似解决方案