![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swoole
鸿髪一霸
吾乃小菜鸟一枚
展开
-
swoole过滤多余请求
swoole过滤多余请求,这里举个栗子,以google浏览器多一次favicon.ico请求为例 <?php clasee xx{ public function __construct() { . . . . . . $this->ws->on("requ...原创 2018-08-13 10:17:40 · 798 阅读 · 0 评论 -
使用swoole+php监控服务器端口
<?php class Server { const PORT = 80; public function port() { $shell = "netstat -anp 2>/dev/null | grep ".self::PORT." | grep LISTEN | wc -l"; $result = shell_exec($shell); if(...原创 2018-08-13 10:37:37 · 1292 阅读 · 0 评论 -
swoole平滑重启
swoole信号源 1,sigterm 服务器 2,sigusr1 worker进程 3,usr2 task进程 <?php class Ws { public function __construct() { . . . . . $this->ws->on("st...原创 2018-08-13 11:03:09 · 1833 阅读 · 4 评论