启动命令执行后 报错,但是还能执行,系统用的 Ubuntu
php test_wk.php start
Workerman start in DEBUG mode
PHP Warning: file_get_contents(/home/yycc/yy.cc.cn/newinterface/Workerman/../_home_yycc_yy.cc.cn_newinterface_test_wk.php.pid): failed to open stream: No such file or directory in /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php on line 609
PHP Stack trace:
PHP 1. {main}() /home/yycc/yy.cc.cn/newinterface/test_wk.php:0
PHP 2. Workerman\Worker::runAll() /home/yycc/yy.cc.cn/newinterface/test_wk.php:27
PHP 3. Workerman\Worker::parseCommand() /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php:415
PHP 4. file_get_contents() /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php:609
SCREAM: Error suppression ignored for
Warning: file_get_contents(/home/yycc/yy.cc.cn/newinterface/Workerman/../_home_yycc_yy.cc.cn_newinterface_test_wk.php.pid): failed to open stream: No such file or directory in /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php on line 609
Call Stack:
0.0002 354112 1. {main}() /home/yycc/yy.cc.cn/newinterface/test_wk.php:0
0.0022 592688 2. Workerman\Worker::runAll() /home/yycc/yy.cc.cn/newinterface/test_wk.php:27
0.0026 611576 3. Workerman\Worker::parseCommand() /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php:415
0.0028 612104 4. file_get_contents() /home/yycc/yy.cc.cn/newinterface/Workerman/Worker.php:609
----------------------- WORKERMAN -----------------------------
Workerman version:3.3.5 PHP version:7.0.8-3+deb.sury.org~trusty+4
------------------------ WORKERS -------------------------------
user worker listen processes status
yycc none none 1
1个回答
年代过于久远,无法发表回答
源码里面用了@抑制了错误的,因为你用了scream扩展,所以打印到终端了,把scream扩展去掉吧