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

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

小七他哥

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

yum install libevent
已加載插件:fastestmirror
設(shè)置安裝進(jìn)程
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 已安裝并且是最新版本
無(wú)須任何處理

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

[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] 

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

2091 3 0
3個(gè)回答

朕震驚了

你這個(gè)命令只是是裝了libevent,但是沒(méi)給php裝libevent擴(kuò)展。
就像你給服務(wù)器裝了mysql,php要用mysql的話還要給php裝mysql擴(kuò)展。

  • 小七他哥 2021-06-25

    謝謝回答,我按你的意思去安裝php的libevent擴(kuò)展了,但是這個(gè)擴(kuò)展的版本好像特別低,都不支持php7以上的,而且該庫(kù)也沒(méi)人維護(hù),請(qǐng)問(wèn)你用的是什么庫(kù)呢?

evilk

php7,請(qǐng)使用event擴(kuò)展,不要使用libevent擴(kuò)展
兩者性能沒(méi)差

  • 暫無(wú)評(píng)論
Tinywan

安裝PHP擴(kuò)展event http://pecl.php.net/package/event

  • 暫無(wú)評(píng)論
年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??