這里詳細(xì)描述問(wèn)題
在安裝event擴(kuò)展的時(shí)候,不小心 Include libevent OpenSSL support【yes】,這里沒(méi)有鍵入no
workerman里面顯示 load average: 0, 0.01, 0.05 event-loop:\Workerman\Events\Event
應(yīng)該是成功的,運(yùn)行一會(huì)兒,會(huì)跳出一些報(bào)錯(cuò)信息【偶爾】,請(qǐng)問(wèn)怎么辦,是不管它還是需要重新安裝EVENT,那么如何重新安裝EVENT呢,謝謝
已經(jīng)解決,方法如下 :
首先卸載pecl/event擴(kuò)展
pecl uninstall event
重新安裝:
pecl install event
注意提示:Include libevent OpenSSL support [yes] : 時(shí)輸入no回車(chē),注意提示:PHP Namespace for all Event classes :時(shí)輸入yes,其它直接敲回車(chē)就行
運(yùn)行php --ini找到并打開(kāi)php.ini文件,在最后一行加入如下配置
extension=event.so
(之前已經(jīng)加過(guò),這里就不用再加了)
錯(cuò)誤碼又出現(xiàn):
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
SSL handshake error: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages:
error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
這是我重新裝了event之后,又出現(xiàn)的錯(cuò)誤提示
我用的是$ws_worker->transport = 'ssl';
以https訪問(wèn)的,不知道是否與這個(gè)有關(guān)
一看就是ssl相關(guān)錯(cuò)誤,error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol 根據(jù)這個(gè)提示,有可能是客戶端使用的ws請(qǐng)求鏈接