915.Partition Array into Disjoint Intervals 原题&翻译 G […]
701. Insert into a Binary Search Tree 二叉搜索树的插入
701.Insert into a Binary Search Tree 原题&翻译 Given th […]
951. Flip Equivalent Binary Trees 交换树叶是否匹配
951. Flip Equivalent Binary Trees 原题&翻译 给出一棵二叉树, 定义 […]
基于 Redis 发布订阅 sub pub 的集群通信
基于 Redis 发布(Sub), 订阅(Pub) 的集群通信 本文仅供摸索学习的朋友参阅, 并不严谨, 疏漏 […]
948. Bag of Tokens 令牌换分
948.Bag of Tokens 原题&翻译 You have an initial power P […]
150. Evaluate Reverse Polish Notation – 逆波兰式
150. Evaluate Reverse Polish Notation 原题&翻译 Evaluat […]
49. Group Anagrams 乱序字母分组
49. Group Anagrams 原题&翻译 Given an array of strings, […]
Elastic Search 建表, 插入, 查询
Elastic 建表查询 curl 一, 创建表 curl 方式建表需要先建立索引, 然后创建表头. 删表的时 […]
ElasticSearch 搜索 过滤上下文概述
搜索过滤语法 查询条件依赖于查询和过滤的上下文: 查询上下文 [crayon-5df1f94c05b86214 […]
swoole nginx
配置 nginx 分发请求到 swoole
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
server { root /data/wwwroot/; server_name local.swoole.com; location / { proxy_http_version 1.1; proxy_set_header Connection "keep-alive"; proxy_set_header X-Real-IP $remote_addr; if (!-e $request_filename) { proxy_pass http://127.0.0.1:9501; } } } # 关闭 php-fpm 设置, 否则动态脚本依旧会寻找 fpm |