#CENTOS8 网络配置
net默认dhcp自动分配ip – 建议使用,避免占用局域网ip
onboot=yes
#php7.4安装
#下载目录
cd /usr/local
#下载php7.4源码
wget https://www.php.net/distributions/php-7.4.2.tar.bz2
#解压 进入
tar --bzip -xvf /usr/local/php-7.4.2.tar.bz2
cd php-7.4.2
#安装编译工具gcc gcc++ 和php依赖库
yum -y install gcc gcc-c++
yum -y install libxml2-devel openssl-devel curl-devel libjpeg-devel libpng-devel libicu-devel freetype-devel openldap-devel openldap openldap-devel
#用户和用户组
groupadd www
useradd -g www www
#开始编译
./configure --prefix=/usr/local/php
–enable-fpm
–with-fpm-user=www
–with-fpm-group=www
–enable-mysqlnd
–with-mysqli=mysqlnd
–with-pdo-mysql=mysqlnd
–enable-mysqlnd-compression-support
–with-iconv-dir
–with-freetype-dir
–with-jpeg-dir
–with-png-dir
–wit