1.安装php7.4
yum install libjpeg libjpeg-devel
./configure --prefix=/usr/local/php7
--with-config-file-path=/usr/local/php7/etc
--with-freetype-dir=/usr/include/freetype2 \
--enable-gd-native-ttf
--with-jpeg-dir=/usr/include
--with-mcrypt=/usr/include
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--with-mysql-sock=/tmp/mysql.sock
--enable-mysqlnd
--with-gd
--with-iconv
--with-zlib
--enable-bcmath
--enable-shmop
--enable-sysvsem
--enable-inline-optimization
--enable-mbregex
--enable-fpm
--enable-mbstring
--enable-ftp
--enable-gd-native-ttf
--with-openssl
--enable-sockets
--with-xmlrpc
--enable-zip
--enable-soap
--with-gettext
--with-curl
--with-jpe