1. 删除php所有版本
   yum -y remove php*
 
2. 安装php7
yum -y install php72w php72w-cli php72w-fpm php72w-common php72w-devel php72w-embedded php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
 
3. 安装完成以后,启动服务
 
systemctl enable php-fpm.service
 
systemctl start php-fpm.service
 
=======================================
相关命令
查看哪些进程 启动了 #  netstat -lntp
 
#  whereis php

查看php软件包 #  rpm -qa|grep php
 
# php -v
 
 

相关文章:

  • 2022-02-17
  • 2021-12-31
  • 2021-11-10
  • 2021-11-28
  • 2021-12-01
  • 2021-11-14
  • 2022-02-20
猜你喜欢
  • 2021-09-08
  • 2021-07-30
  • 2021-06-23
  • 2021-04-14
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案