GithubHelp home page GithubHelp logo

swoole-chat-1's Introduction

swoole编程学习

#初步接触swoole 在这几天接触过不少次php环境搭建,拓展的编译配置,成功配置了swoole拓展,redis拓展,初始运用的集成环境,试过lnmp、xampp等,最后感觉自己在linux下php开发可以很简单,将所有的集成环境卸载了,编译php7源程序安装,在编译到一半的过程中遇到过一个错误,makefile文件的一个集成编译项后少了一个编译项,EXTRA_LIBS = ..... -lcrypt -liconv,再次编译通过。拓展的安装大概phpize->configure->make。 ##学到php中的知识点 1.swoole服务需要使用php的cli运行。

2.ob_start()、ob_get_contents()、ob_end_clean()等操作缓冲区的系列函数参考博客PHP ob系列函数详解PHP中的ob_start用法详解。 ##swool学习 1.基础的swoole服务运行,配置,接口。

2.可以将swoole运行程序守护进程化。server配置中的daemonize设置为1。文档很重要。 ##其他知识点 1.在linux中查看进程 ps auxf|grep servername。

2.统计数量 ps auxf|grep servername|wc -l。

3.压力测试 ab -c 100 -n 1000 http://127.0.0.1:9501/a.php模拟100个用户1000次请求此地址。

swoole-chat-1's People

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.