lixuancn / meepops Goto Github PK
View Code? Open in Web Editor NEWMeepoPS是Meepo PHP Socket的缩写,旨在提供稳定的Socket服务。可以轻松构建在线实时聊天、即时游戏、视频流媒体播放等。
Home Page: http://meepops.lanecn.com
License: Do What The F*ck You Want To Public License
MeepoPS是Meepo PHP Socket的缩写,旨在提供稳定的Socket服务。可以轻松构建在线实时聊天、即时游戏、视频流媒体播放等。
Home Page: http://meepops.lanecn.com
License: Do What The F*ck You Want To Public License
MeepoPS Start: [OK]
-------------------------- MeepoPS Start Success ------------------------
MeepoPS Version: 0.0.5 | PHP Version: 7.1.4 | Master Pid: 78621 | Event: Select
-------------------------- Instances List -------------------------
Fatal error: Cannot unset $this in MeepoPS/MeepoPS/Core/TransportProtocol/Tcp.php on line 353
这个可以删除 Tcp.php ( 353行)的 unset($this) 就可以了。
---- 弱弱问一下 这个库还在维护么?
[root@VM_40_223_centos meepops]# sudo php demo-websocket.php start
Warning: Unexpected character in input: '' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-websocket.php on line 16
Warning: Unexpected character in input: '' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-websocket.php on line 16
Parse error: syntax error, unexpected T_STRING in /www/wwwroot/meepops/demo-websocket.php on line 16
[root@VM_40_223_centos meepops]# sudo php demo-http.php start
Warning: Unexpected character in input: '' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-http.php on line 17
Warning: Unexpected character in input: '' (ASCII=92) state=1 in /www/wwwroot/meepops/demo-http.php on line 17
Parse error: syntax error, unexpected T_STRING in /www/wwwroot/meepops/demo-http.php on line 17
我看文档目前是通过下载源代码,引入index.php的方式来操作的。为什么不传到composer上呢,通过composer来安装使用呢?
使用ThinkPHP集成MeepoPS时,在浏览器出现这个提示,怎么处理?
环境:
ThinkPHP V3.2.3
CentOS 7
PHP 5.4.16
Could you translate the description for non chinese speaking ?
thanks !
降级回centOS6.5正常,centOS7.0报错,/解析错误,请作者考虑兼容做个排查,谢谢
起因是我发现我明明安装了 Libevent ,但是 启动MeepoPS的时候却没有,发现cli下的php是系统自带的(我用vagrant+box)
接着看手册里的配置信息默认配置是 Select 轮询机制.
[event] 这个节段里配置的,但是没有配置 Libevent
再看源码的时候发现了:MeepoPS 自动选择优先会使用 Libevent
那么问题就简单了,比如我的环境下
系统自带的php在 /usr/bin/php
下,安装的在 /usr/local/php56/bin/php
下
解决方案 三步骤走起
sudo cp /usr/bin/php /usr/bin/php55
sudo rm /usr/bin/php
sudo ln -s /usr/local/php56/bin/php /usr/bin/php
再启动MeepoPS 就可以看到Event: Libevent
了
MeepoPS Start: [OK]
-------------------------- MeepoPS Start Success ------------------------
MeepoPS Version: 0.0.5 | PHP Version: 5.6.29 | Master Pid: 14450 | Event: Libevent
这点官方文档个人觉得应该加个 notice 吧 ,由于没有就当是一个新的Issues吧 :)
希望作者创建一个Q群,能在您有空的时候帮帮大家
你好,MeepoPS支持wss协议吗?网站在https协议下请求wss协议提示,failed: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR 错误
环境介绍
linux版本:CentOS release 6.9
php:PHP 7.1.8RC1
MeepoPS:最新的,截止到发问前
问题
运行 sudo php demo-telnet.php start 报错,如下
[INFO][2017-09-05 17:45:12][15356]MeepoPS check shutdown reason
[ERROR][2017-09-05 17:45:12][15356]stream_socket_serverMeepoPS unexpectedly quits. last error: {"type":64,"message":"Redefinition of parameter $_null","file":"\/home\/zuosongyan\/web\/MeepoPS\/MeepoPS\/Core\/Event\/Libevent.php","line":155}
^C[INFO][2017-09-05 17:45:12][14024]MeepoPS is stopping...
[ERROR][2017-09-05 17:45:12][14024]MeepoPS instance(MeepoPS-Telnet:15356) exit. Status: 65280
[INFO][2017-09-05 17:45:12][14024]MeepoPS has been pulled out
http://127.0.0.1:19911/
访问的时候服务端报错,$ sudo php real_time_monitor_ssh_server.php restart
[INFO][2017-04-29 23:24:45][74344]MeepoPS receives the "restart" instruction, MeepoPS will graceful restart
MeepoPS Stop: [OK]
MeepoPS Start: [OK]
-------------------------- MeepoPS Start Success ------------------------
MeepoPS Version: 0.0.5 | PHP Version: 7.0.15-0ubuntu0.16.04.4 | Master Pid: 74344 | Event: Select
-------------------------- Instances List -------------------------
MeepoPS-WebSocket websocket://0.0.0.0:19910 Child Process: 1
MeepoPS-Http http://0.0.0.0:19911 Child Process: 1
PHP Fatal error: Uncaught Error: Call to undefined function ssh2_connect() in /home/tinywan/MeepoPS/Example/Real_Time_Monitor_Ssh/websocket_server.php:58
Stack trace:
#0 /home/tinywan/MeepoPS/Example/Real_Time_Monitor_Ssh/websocket_server.php(40): _connectServer(Object(MeepoPS\Core\TransportProtocol\Tcp), '127.0.0.1', 'root', '123456')
#1 /home/tinywan/MeepoPS/Example/Real_Time_Monitor_Ssh/websocket_server.php(29): memfree(Object(MeepoPS\Core\TransportProtocol\Tcp), Array)
tinywan@tinywan:~/MeepoPS/Example/Real_Time_Monitor_Ssh$ sudo php real_time_monitor_ssh_server.php start
[sudo] tinywan 的密码:
[FATAL][2017-04-28 12:54:20][36007]MeepoPS already running. file: real_time_monitor_ssh_server.php
PHP Fatal error: Can't use function return value in write context in /var/www/imooc/socket/MeepoPS/MeepoPS/Library/Session.php on line 32
[INFO][2017-12-10 20:11:57][22084]MeepoPS check shutdown reason
[ERROR][2017-12-10 20:11:57][22084]stream_socket_serverMeepoPS unexpectedly quits. last error: {"type":64,"message":"Can't use function return value in write context","file":"/var/www/imooc/socket/MeepoPS/MeepoPS/Library/Session.php","line":32}
[ERROR][2017-12-10 20:11:57][22079]MeepoPS instance(MeepoPS-Http:22084) exit. Status: 65280
简单看了下代码,也是基于pcntl和libevent的机制的,感觉不到有什么特色呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.