Coder Social home page Coder Social logo

hulkwan / charroom Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lyxlk/charroom

0.0 1.0 0.0 791 KB

PHP + Swoole 聊天室

Home Page: http://chatroom.ivisionsky.com

License: Other

PHP 97.25% HTML 0.54% CSS 0.08% JavaScript 0.34% PLpgSQL 0.19% Smarty 1.60%

charroom's Introduction

本项目是由 PHP研究院:Q群【 200979897 】

推出的基于PHP7+Swoole+Redis+Mysql实现的实时聊天系统

项目演示地址 : http://chatroom.ivisionsky.com

欢迎各位同仁一起推进、做出一个有意义的项目

CharRoom单词写错了,有洁癖的自行修改

要觉得项目对您有帮助就点个赞吧~~~

服务器启动/关闭

  • cd /var/www/charRoom && php think Swoole -m "start"
  • cd /var/www/charRoom && php think Swoole -m "stop"

服务器监控相关脚本如下

每天凌晨 4点 重启各种服务器

  • 5 4 * * * service php-fpm restart >/dev/null 2>&1 &

  • 10 4 * * * service nginx restart >/dev/null 2>&1 &

  • 15 4 * * * service mysql restart >/dev/null 2>&1 &

  • 20 4 * * * service redis restart >/dev/null 2>&1 &

防止redis 超负荷运行 挂掉了

  • 18 4 * * * redis-server /etc/redis.conf >/dev/null 2>&1 &

  • 19 4 * * * redis-server /etc/redis6380.conf >/dev/null 2>&1 &

每5分钟

  • */5 * * * * cd /var/www/charRoom && php think Swoole -m "monitor" >/dev/null 2>&1 &

每小时执行一次 重启一下worker

  • 1 * * * * cd /var/www/charRoom && php think Swoole -m "reload" >/dev/null 2>&1 &

charroom's People

Watchers

 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.