国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

為何我機器上安裝了libevent,但是workerman使用的卻是select?

小七他哥

我在機器上執(zhí)行如下命令:

yum install libevent
已加載插件:fastestmirror
設置安裝進程
Loading mirror speeds from cached hostfile
http://mirrors.cloud.aliyuncs.com/centos/6/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
嘗試其他鏡像。
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

epel                                                                         | 4.7 kB     00:00     
epel/primary_db                                                              | 6.9 MB     00:27     
http://mirrors.cloud.aliyuncs.com/centos/6/extras/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
嘗試其他鏡像。
http://mirrors.cloud.aliyuncs.com/centos/6/updates/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
嘗試其他鏡像。
包 libevent-1.4.13-4.el6.x86_64 已安裝并且是最新版本
無須任何處理

但是我看 status 信息的時候卻顯示如下:

[root@iZ257wguph6Z diary]# php workerManApi/WebsocketServer.php status
Workerman[workerManApi/WebsocketServer.php] status 
----------------------------------------------GLOBAL STATUS----------------------------------------------------
Workerman version:4.0.19          PHP version:7.0.21
start time:2021-06-25 15:19:17   run 0 days 0 hours   
load average: 0, 0, 0            event-loop:\Workerman\Events\Select
1 workers       1 processes
worker_name       exit_status      exit_count
MyWebsocketWorker 0                0
----------------------------------------------PROCESS STATUS---------------------------------------------------
pid memory  listening                worker_name       connections send_fail timers  total_request qps    status
416 4M      websocket://0.0.0.0:8910 MyWebsocketWorker 3           0         0       4             0      [idle]
----------------------------------------------PROCESS STATUS---------------------------------------------------
Summary 4M      -                        -                 3           0         0       4             0      [Summary] 

看那個 event-loop,我期望使用 libevent ,該如何設置呢?

2134 3 0
3個回答

朕震驚了

你這個命令只是是裝了libevent,但是沒給php裝libevent擴展。
就像你給服務器裝了mysql,php要用mysql的話還要給php裝mysql擴展。

  • 小七他哥 2021-06-25

    謝謝回答,我按你的意思去安裝php的libevent擴展了,但是這個擴展的版本好像特別低,都不支持php7以上的,而且該庫也沒人維護,請問你用的是什么庫呢?

evilk

php7,請使用event擴展,不要使用libevent擴展
兩者性能沒差

  • 暫無評論
Tinywan
  • 暫無評論
年代過于久遠,無法發(fā)表回答
??