Giter VIP home page Giter VIP logo

swooleworker-project's Introduction

SwooleWorker脚手架

这是一个【SwooleWorker】脚手架

安装

方式1(推荐):

composer create-project xielei/project

方式2:

直接下载本项目,然后执行:

composer install

启动

[root@VM-0-17-centos project]# php app/register/start.php start -d
the service is running with daemonize
[root@VM-0-17-centos project]# php app/worker/start.php start -d
the service is running with daemonize
[root@VM-0-17-centos project]# php app/gateway/start.php start -d
the service is running with daemonize
[root@VM-0-17-centos project]# 

体验测试

窗口1:

[root@VM-0-17-centos project]# telnet 127.0.0.1 8000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
7f000001239400000001 connect~
7f000001239400000002 connect~
7f000001239400000002 say 你好
嗯嗯 我很好
7f000001239400000001 say 嗯嗯 我很好
7f000001239400000002 say 拜拜
7f000001239400000002 exit~

窗口2

[root@VM-0-17-centos project]# telnet 127.0.0.1 8000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
7f000001239400000002 connect~
你好
7f000001239400000002 say 你好
7f000001239400000001 say 嗯嗯 我很好
拜拜
7f000001239400000002 say 拜拜
^]quit

telnet> quit
Connection closed.
[root@VM-0-17-centos project]# 

swooleworker-project's People

Contributors

xielei avatar

Watchers

James Cloos 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.