websocket - phpsocketio中怎么启动?
漂亮男人
漂亮男人 2017-05-16 13:10:10
0
2
845

phpsocketio是基于workerman的
我从github上下载了源码,修改了逻辑能跑起来
启动方式如果是
php server.php restart
php server.php start

这样启动的话 是能接受能转发消息的
但是我如果是用
php server.php start -d
这样反而不行了 客户端刚连接上就断开了

我想问一下 用 start启动和start -d启动区别在哪里

我总不能让php server.php start放在那里吧

漂亮男人
漂亮男人

reply all (2)
巴扎黑

Finally the problem was found because Workerman must use its own mysql framework
If you use other frameworks, the running result will be like a script running from beginning to end, so the database object cannot be persisted

So you only need to install workerman/mysql

    仅有的幸福

    start -d is to start the daemon process

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!