Win11系統(tǒng) 雙擊 windows.bat文件報(bào)錯(cuò)
Notice: Undefined index: listen in D:\phpStudy\PHPTutorial\WWW\webman\vendor\workerman\webman-framework\src\support\App.php on line 86
@@@no worker inited@@@
這里粘貼截圖
電腦是 Win11系統(tǒng) ,php 環(huán)境如下:
PHP 7.4.33 (cli) (built: Nov 2 2022 15:06:48) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v3.1.6, Copyright (c) 2002-2022, by Derick Rethans
升級(jí)
composer require workerman/webman-framework ^1.6 -W
我php7.4的 咋升級(jí),不升級(jí)php的前提下,可修復(fù)這個(gè)問題嗎?webman-framework 1.5版本我看了源代碼配置文件 server.php 里面根本沒有 $config['listen'] 這個(gè)屬性
按你說的執(zhí)行了 composer require workerman/webman-framework ^v1.5.25 報(bào)錯(cuò)沒了,但是雙擊啟動(dòng)后一直反復(fù)執(zhí)行 process D:\phpStudy\PHPTutorial\WWW\webman\start.php terminated and try to restart
@@@no worker inited@@@
https://github.com/walkor/webman-framework/blob/1.5/src/windows.php
windows.bat 同級(jí)有個(gè) windows.php,替換下