webman二进制打包报错301 Moved Permanently

lguanax

问题描述

安装的新项目,webman2.1版本,就想先试一下二进制打包行不行,在phpstorm的自带终端和cmd运行打包命令都试了,不同版本的也试了,都报错Download php8.4.micro.sfx.zip failed, 301 Moved Permanently

程序代码

 php webman build:bin
 php webman build:bin 8.1
 php webman build:bin 8.4

报错信息

Downloading PHP8.4 ...
Download php8.4.micro.sfx.zip failed, 301 Moved Permanently

操作系统及workerman/webman等框架组件具体版本

composer.json

  "require": {
    "php": ">=8.1",
    "workerman/webman-framework": "^2.1",
    "monolog/monolog": "^2.0",
    "webman/console": "^2.1"
  },
137 2 0
2个回答

walkor 打赏

刚刚测试本地和服务器上都正常

截图

  • lguanax 16天前

    刚又挂梯子试了一下,还是报错,可能是我这边的网络被屏蔽了嘛

  • lguanax 16天前

    PS C:\Workspace\Project\Exp\webmannew\webxman> php webman build:bin

    Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
    PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0

    Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
    PHP Warning: Module "pgsql" is already loaded in Unknown on line 0

    Warning: Module "pgsql" is already loaded in Unknown on line 0
    Phar packing...
    Files collect complete, begin add file to Phar.
    Write requests to the Phar archive, save changes to disk.

    Downloading PHP8.4 ...
    Download php8.4.micro.sfx.zip failed, 301 Moved Permanently
    PS C:\Workspace\Project\Exp\webmannew\webxman> php webman build:bin 8.3
    PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
    PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0

    Warning: PHP Startup: Unable to load dynamic library 'pdo_firebird' (tried: ext\pdo_firebird (鎵句笉鍒版寚瀹氱殑妯″潡銆?, ext\php_pdo_firebird.dll (鎵句笉鍒版寚瀹氱殑妯″潡銆?) in Unknown on line 0
    PHP Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0

    Warning: Module "pdo_pgsql" is already loaded in Unknown on line 0
    PHP Warning: Module "pgsql" is already loaded in Unknown on line 0

    Warning: Module "pgsql" is already loaded in Unknown on line 0
    Phar packing...
    Files collect complete, begin add file to Phar.
    Write requests to the Phar archive, save changes to disk.

    Downloading PHP8.3 ...
    Download php8.3.micro.sfx.zip failed, 301 Moved Permanently

北月妖王

可能是你 DNS 问题,可以直接下载 php8.4.micro.sfx.zip 放到 build 目录,然后重新执行 php webman build:bin 8.4

🔝