linux 安装php7.4
一、安装前库文件和工具准备
1、首先安装 EPEL 源
yum -y install epel-release
2.安装 REMI 源
yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
3.安装 Yum 源管理工具
yum -y install yum-utils
二、安装PHP
1.安装PHP
yum -y --enablerepo=remi install php74-php php74-php-fpm php74-php-bcmath php74-php-ctype php74-php-curl php74-php-dom php74-php-gd php74-php-hash php74-php-iconv php74-php-intl php74-php-mbstring php74-php-pdo_mysql php74-php-simplexml php74-php-soap php74-php-xsl php74-php-zip php74-php-xml php74-php-sockets php74-php-session php74-php-snmp php74-php-mysql php74-php-cli php74-php-json php74-php-mcrypt php74-php-mysqlnd php74-php-pecl-crypto php74-php-pecl-mcrypt php74-php-pecl-geoip php74-php-recode php74-php-xmll
2.重启一下计算机,不然有可能无法启动php
reboot
3.设置开机启动、运行服务
systemctl start php74-php-fpm
systemctl enable php74-php-fpm