Closed Aaron-QL closed 5 years ago
之后尝试本地启动,报错:
(CONSOLE)ErrorException: Swoole\Process::kill(): swKill(1, 0) failed, Error: Operation not permitted[1]
At /Users/qinlong/hbh/swoft/vendor/swoft/server/src/Server.php line 764
Code Trace:
#0 [internal function]: Swoft\Error\DefaultErrorDispatcher->handleError(2, 'Swoole\\Process:...', '/Users/qinlong/...', 764, Array)
#1 /Users/qinlong/hbh/swoft/vendor/swoft/server/src/Server.php(764): Swoole\Process::kill(1, 0)
#2 /Users/qinlong/hbh/swoft/vendor/swoft/http-server/src/Command/HttpServerCommand.php(51): Swoft\Server\Server->isRunning()
#3 /Users/qinlong/hbh/swoft/vendor/swoft/stdlib/src/Helper/PhpHelper.php(51): Swoft\Http\Server\Command\HttpServerCommand->start()
#4 /Users/qinlong/hbh/swoft/vendor/swoft/console/src/ConsoleDispatcher.php(47): Swoft\Stdlib\Helper\PhpHelper::call(Array)
#5 /Users/qinlong/hbh/swoft/vendor/swoft/console/src/Application.php(200): Swoft\Console\ConsoleDispatcher->dispatch(Array)
#6 /Users/qinlong/hbh/swoft/vendor/swoft/console/src/Application.php(140): Swoft\Console\Application->doRun('http:start')
#7 /Users/qinlong/hbh/swoft/vendor/swoft/framework/src/Processor/ConsoleProcessor.php(43): Swoft\Console\Application->run()
#8 /Users/qinlong/hbh/swoft/vendor/swoft/framework/src/Processor/ApplicationProcessor.php(34): Swoft\Processor\ConsoleProcessor->handle()
#9 /Users/qinlong/hbh/swoft/vendor/swoft/framework/src/SwoftApplication.php(221): Swoft\Processor\ApplicationProcessor->handle()
#10 /Users/qinlong/hbh/swoft/bin/swoft(14): Swoft\SwoftApplication->run()
#11 {main}
第一次
docker-compose up
正常启动,Ctrl+C
停掉后再次启动,会报下面的错误,只有把runtime/swoft.pid
文件删掉才能再次启动Dockerfile:
docker-compose.yml: