https://www.cnblogs.com/kewenpu/p/19174277 https://developer.aliyun.com/article/653767 ./configure \ --prefix=/usr/local/php \ --with-config-file-path=/usr/local/php/etc \ --with-config-file-scan-dir=/usr/local/php/conf.d \ --enable-fpm \ --with-fpm-user=www \ --with-fpm-group=www \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-openssl \ --with-zlib \ --with-curl \ --with-iconv=/usr/local \ --with-gettext \ --enable-mbstring \ --enable-bcmath \ --enable-soap \ --enable-sockets \ --enable-pcntl \ --enable-exif \ --enable-intl \ --enable-gd \ --with-jpeg \ --with-freetype \ --with-webp \ --with-zip https://downloads.mysql.com/archives/community/ https://developer.aliyun.com/article/762058 yum install -y centos-release-scl yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ scl enable devtoolset-11 bash cat > /etc/yum.repos.d/CentOS-SCLo-scl.repo <<'EOF' [centos-sclo-sclo] name=CentOS-7 - SCLo sclo baseurl=http://vault.centos.org/7.9.2009/sclo/x86_64/sclo/ enabled=1 gpgcheck=0 [centos-sclo-rh] name=CentOS-7 - SCLo rh baseurl=http://vault.centos.org/7.9.2009/sclo/x86_64/rh/ enabled=1 gpgcheck=0 EOF https://placjh.com/archives/centos7-bu-shu-gao-ban-ben-zabbix7.0 mysqldump \ --single-transaction \ --quick \ --routines \ --triggers \ --events \ --hex-blob \ --ignore-table=zabbix.history \ --ignore-table=zabbix.history_uint \ --ignore-table=zabbix.history_str \ --ignore-table=zabbix.history_text \ --ignore-table=zabbix.history_log \ --ignore-table=zabbix.trends \ --ignore-table=zabbix.trends_uint \ zabbix | gzip > /backup/zabbix/zabbix_no_history_$(date +%F_%H-%M-%S).sql.gz cd /usr/local/src wget https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.10.tar.xz tar xf libxml2-2.12.10.tar.xz cd libxml2-2.12.10 ./configure --prefix=/usr/local/libxml2 --without-python make -j$(nproc) make install echo '/usr/local/libxml2/lib' > /etc/ld.so.conf.d/libxml2.conf ldconfig export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH pkg-config --modversion libxml-2.0 export PKG_CONFIG_PATH=/usr/local/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH export PKG_CONFIG_PATH=/usr/local/openssl/lib/pkgconfig:$PKG_CONFIG_PATH export OPENSSL_CFLAGS="-I/usr/local/src/openssl/include" export OPENSSL_LIBS="-L/usr/local/src/openssl/lib64 -lssl -lcrypto" cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr/local/libzip \ -DBUILD_SHARED_LIBS=ON