php server start,运行 `php start_swoole_server.php start` 报错 · Issue #10 · SwooleDistributed/SwooleDis...

申自明
2023-12-01

运行 php start_swoole_server.php start

报错:

------------- SWOOLE_DISTRIBUTED --------------

System:Linux

SwooleDistributed version:1.7.4

Swoole version: 1.9.4

PHP version: 7.1.0

worker_num: 4

task_num: 2

-------------------SERVER----------------------

type socket port status

TCP 0.0.0.0 9093 [OPEN]

HTTP 0.0.0.0 8081 [OPEN]

WEBSOCKET 0.0.0.0 8081 [OPEN]

DISPATCH 0.0.0.0 9991 [OPEN]

-----------------------------------------------

Press Ctrl-C to quit. Start success.

是否清除Redis上的用户状态信息(y/n)?服务器发生严重错误

WORKER Error fopen(/dev/stdin): failed to open stream: No such file or directory (/var/www/swoole_distributed/src/Server/helpers/Common.

服务器发生严重错误

WORKER Error fgets() expects parameter 1 to be resource, boolean given (/var/www/swoole_distributed/src/Server/helpers/Common.php:34)

服务器发生严重错误

WORKER Error fclose() expects parameter 1 to be resource, boolean given (/var/www/swoole_distributed/src/Server/helpers/Common.php:35)

启动了autoReload

Error: Class 'swoole_redis' not found in /var/www/swoole_distributed/src/Server/DataBase/RedisAsynPool.php on line 353

是什么原因呢?

安装 hiredis 不成功, 请教,帮我看下 :)

root@23bbce2542c6:/var/www/hiredis-0.13.3# make install

mkdir -p /usr/local/include/hiredis /usr/local/lib

cp -a hiredis.h async.h read.h sds.h adapters /usr/local/include/hiredis

cp: preserving permissions for '/usr/local/include/hiredis/adapters': Invalid argument

Makefile:184: recipe for target 'install' failed

make: *** [install] Error 1

 类似资料: