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