首页 > 系统相关 >Centos7 yum 安装php74

Centos7 yum 安装php74

时间:2022-11-27 22:11:57浏览次数:48  
标签:php80 fpm php74 Centos7 yum install php

  1.安装remi扩展源

  remi源是Remi repository 是包含最新版本 PHP 和 MySQL 包的 Linux 源,由 Remi 提供维护。有个这个源之后,使用 YUM 安装或更新 PHP、MySQL、phpMyAdmin 等服务器相关程序的时候就非常方便了。

  https://mirrors.aliyun.com/remi/?spm=a2c6h.13651104.0.0.190a6f27P2YeBW

yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

 

  2.安装YUM管理工具

yum install yum-utils

 

  3.查看PHP(可忽略此步骤)

yum search php73
yum search php74
 
yum list | grep php80

 

  4.安装php

yum install php74-php-gd  php74-php-pdo php74-php-mbstring php74-php-cli php74-php-fpm php74-php-mysqlnd
 
#yum install php74-php-cli php74-php-common php74-php-devel php74-php-embedded php74-php-fpm php74-php-gd php74-php-mbstring php74-php-mysqlnd php74-php-pdo php74-php-opcache php74-php-xml php74-php-soap
 
#yum -y install −−enablerepo=remi-php80 php80 php80-php php80-php-xml php80-php-xmlrpc php80-php-pecl-mcrypt php80-php-fpm php80-php-pecl-apcu php80-php-mbstring php80-php-gd php80-php-json php80-php-pecl-json-post php80-php-pdo php80-php-mysqlnd php80-php-pecl-mysql php80-php-opcache php80-php-pear php80-php-soap php80-php-intl php80-php-pear

#猎人启程需要以下组件
yum -y install php74-php-opcache php74-php-mysqlnd php74-php-pecl-redis5 php74-php-pecl-yac php74-php-json php74-php-gd php74-php-fpm php74

 

  5.确认安装结果

yum list installed | grep php

 

  6.查看php配置文件以及对应目录

rpm -qa | grep php
rpm -ql php-fpm 安装包名

  

 

  7.管理php-fpm

systemctl enable php74-php-fpm
systemctl start php74-php-fpm

 

 

标签:php80,fpm,php74,Centos7,yum,install,php
From: https://www.cnblogs.com/lizexiong/p/16930833.html

相关文章