企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
编译安装php8.0.10 ``` #去到安装目录 wget https://www.php.net/distributions/php-8.0.10.tar.gz --no-check-certificate tar -zxvf php-8.0.10.tar.gz cd php-8.0.10/ ./configure --prefix=/usr/local/soft/php8 --with-config-file-path=/usr/local/soft/php8/etc --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-fpm --enable-static --enable-sockets --with-zip --enable-calendar --enable-bcmath --enable-mbstring --with-zlib --with-iconv=/usr/local/libiconv --enable-gd --enable-mbstring --with-curl --with-freetype --disable-ipv6 --disable-debug --with-openssl --enable-intl --enable-opcache (其他错误见:https://www.cnblogs.com/architectforest/p/14048487.html) configure: error: Please reinstall the iconv library. yum安装 yum -y install libevent libevent-devel #源码安装,去到安装目录 wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz tar -zxvf libiconv-1.15.tar.gz cd libiconv-1.15 ./configure --prefix=/usr/local/libiconv make && make install Package 'oniguruma', required by 'virtual:world', not found dnf --enablerepo=powertools install oniguruma-devel make make test make install /usr/local/soft/php8/bin/php --version #查看PHP版本 mkdir /usr/local/soft/php8/daemon cp /usr/local/resource/php-8.0.10/sapi/fpm/init.d.php-fpm /usr/local/soft/php8/daemon/php-fpm chmod 740 /usr/local/soft/php8/daemon/php-fpm ``` 参考: linux(centos8):编译安装php8.0正式版并启用jit及php8安装时的报错处理(centos8.2 / php8.0.0 ) https://www.cnblogs.com/architectforest/p/14048487.html centos7 下安装 php8.0, 开启jit https://blog.csdn.net/weixin_41112414/article/details/110502367 CentOS7:将yum源更换为remi,安装php8 https://www.jianshu.com/p/b7a3f8a8e0b9