Code Monkey home page Code Monkey logo

swoole-demo's Introduction

swoole 运行

php cli 模式运行 server.php (服务端) 即 php server.php

index.html(客户端)

swoole设置配置

 $ws->set(
     array(
         'daemonize' => true,      // 是否是守护进程
         'max_request' => 10000,    // 最大连接数量
         'dispatch_mode' => 2,
         'debug_mode'=> 1,
         // 心跳检测的设置,自动踢掉掉线的fd
         'heartbeat_check_interval' => 5,
         'heartbeat_idle_time' => 600,
     )
 );

查看端口情况

netstat -nutpl

License

MIT

swoole-demo's People

Contributors

jasonccs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.