进入php目录,重新编译
./configure --prefix=/usr/local/php7
--with-config-file-path=/etc
--enable-fpm
--enable-inline-optimization
--disable-debug
--disable-rpath
--enable-shared --enable-soap
--with-openssl
--enable-bcmath
--with-iconv
--with-bz2
--enable-calendar
--with-curl
--enable-exif
--enable-ftp
--enable-gd
--with-jpeg
--with-zlib-dir
--with-freetype
--with-gettext
--enable-json
--enable-mbstring
--enable-pdo
--with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd
--with-readline
--enable-shmop
--enable-simplexml
--enable-sockets
--with-zip
--enable-mysqlnd-compression-support
--with-pear
--enable-pcntl
--enable-posix
[root@localhost php-7.4.24]# make && make install
[root@localhost php-7.4.24]# service php-fpm restart



