上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: upstream websocket { server 127.0.0.1:2345; } server { listen 443 ssl; server_name 域名; ssl_certificate /usr/local/nginx/scs1640143392931_ws.hr-recycli 阅读全文
posted @ 2021-12-22 17:52 酷酷的城池 阅读(521) 评论(0) 推荐(0) 编辑
摘要: <!doctype html>es安装 elasticsearch按照 https://elasticsearch.cn/download/找到对应的版本 解压并进入到bin内编辑 elasticsearch.yml #network.host: 192.168.0.1 改为 network.hos 阅读全文
posted @ 2021-12-21 14:50 酷酷的城池 阅读(85) 评论(0) 推荐(0) 编辑
摘要: mysql my.ini secure_file_priv="" ; 假如有这么一个场景,开发了一个小程序,趁着双十一活动的热度,一个月后迅速积累了一百多万用户,我们在小程序页面增加了收集formid的埋点,用于给微信用户发送模板消息通知。 随着数据量的增大,之前使用的服务器空间开始有点不够用,最近 阅读全文
posted @ 2021-12-14 18:02 酷酷的城池 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: 在nginx中配置proxy_pass时,如果在proxy_pass后面的url加/,相当于是绝对根路径,则nginx不会把location中匹配的路径部分代理走;如果没有/,则会把匹配的路径部分给代理走。 下面四种情况分别用http://106.12.74.123/abc/index.html进行 阅读全文
posted @ 2021-12-14 11:29 酷酷的城池 阅读(4874) 评论(0) 推荐(1) 编辑
摘要: server{ listen 9999; server_name 192.168.1.187; root /www/admin/test; location / { #伪静态 #include /www/admin/192.168.1.187_80/wwwroot/.rewrite.conf; #首 阅读全文
posted @ 2021-12-14 10:30 酷酷的城池 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2021-12-06 12:30 酷酷的城池 阅读(17) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq2942713658/article/details/119716410 https://www.cnblogs.com/yxhblogs/p/10739137.html public function queue_declare( $queue = 阅读全文
posted @ 2021-11-24 17:20 酷酷的城池 阅读(127) 评论(0) 推荐(0) 编辑
摘要: function cnstrrev($str) { $len = strlen($str); for($i = 0; $i < $len; $i++) { $char = $str{0}; if(ord($char) > 127) //ord()函数取得第一个字符的ASCII码,如果大于0xa0(1 阅读全文
posted @ 2021-11-23 10:28 酷酷的城池 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 概述 经过一段时间对 Swoole & Swoft 的学习和实践,发现 Swoft 是一个优秀的开发框架,其设计思想借鉴了 Laravel、Yii 等传统 WEB 框架,但很多特性和他们有着较大的区别。Swoft 借助 Swoole 的驱动,大大提高了 PHP 应用的性能,也让开发过程变动轻松、愉快 阅读全文
posted @ 2021-11-18 17:29 酷酷的城池 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2021-11-12 14:41 酷酷的城池 阅读(20) 评论(0) 推荐(0) 编辑
摘要: https://www.zhihu.com/question/389531503 阅读全文
posted @ 2021-11-04 12:13 酷酷的城池 阅读(19) 评论(0) 推荐(0) 编辑
摘要: https://www.npmjs.com/package/ua-parser-js 阅读全文
posted @ 2021-11-02 11:20 酷酷的城池 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1.axios 拦截器简单介绍 // 添加一个请求拦截器 axios.interceptors.request.use(function (config) { // Do something before request is sent return config; }, function (err 阅读全文
posted @ 2021-11-02 11:02 酷酷的城池 阅读(5368) 评论(0) 推荐(0) 编辑
摘要: css 特效 animate.css 官网 https://animate.style/ 生成唯一id uuid 阅读全文
posted @ 2021-10-19 16:09 酷酷的城池 阅读(81) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/werben/p/11550412.html 一、elasticsearch的Dockerfile 增加中文搜索插件analysis-ik 1 2 3 4 5 6 7 8 9 FROM docker.elastic.co/elasticsearch/e 阅读全文
posted @ 2021-09-30 18:02 酷酷的城池 阅读(169) 评论(0) 推荐(0) 编辑
摘要: version: '3' services: es01: image: docker.elastic.co/elasticsearch/elasticsearch:7.15.0 container_name: es01 restart: always environment: - "ES_JAVA_ 阅读全文
posted @ 2021-09-30 17:45 酷酷的城池 阅读(69) 评论(0) 推荐(0) 编辑
摘要: PUT my_index { "mappings":{ "properties":{ "title":{ "type":"text", "analyzer": "ik_max_word", "search_analyzer": "ik_max_word" } } } } PUT my_index1/ 阅读全文
posted @ 2021-09-29 10:06 酷酷的城池 阅读(27) 评论(0) 推荐(0) 编辑
摘要: (一)text字段和keyword字段的区别 以下给出一个例子: 首先建立一个索引和类型,引入一个keywork的字段: PUT my_index { "mappings": { "products": { "properties": { "name": { "type": "keyword" } 阅读全文
posted @ 2021-09-28 09:52 酷酷的城池 阅读(205) 评论(0) 推荐(0) 编辑
摘要: $interval=$data['interval']*60; #间隔分钟数 $forenoon_start = strtotime($data['forenoon_start']); #开始时间 $forenoon_end = strtotime($data['forenoon_end']);#件 阅读全文
posted @ 2021-08-28 10:36 酷酷的城池 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 是否允许放行 * @param string $key redis键前缀 * @param int $timeInterval 时间间隔(秒) * @param int $max 时间间隔内最大放行数 * @return bool 是否放行 * @throws Excepti 阅读全文
posted @ 2021-08-26 16:48 酷酷的城池 阅读(90) 评论(0) 推荐(0) 编辑
摘要: function shorturl($url) { $url = crc32($url); $result = sprintf("%u", $url); return code62($result); } function code62($x) { $show = ''; while ($x > 0 阅读全文
posted @ 2021-07-29 18:14 酷酷的城池 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 链接: https://pan.baidu.com/s/1eyYWerqk07-iM08VnDnAcQ 提取码: yssy 复制这段内容后打开百度网盘手机App,操作更方便哦 传送门 阅读全文
posted @ 2021-07-10 17:07 酷酷的城池 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 传送门 链接: https://pan.baidu.com/s/1EetBZR3qr5gFyHMxy7Axpw 提取码: cg9a 复制这段内容后打开百度网盘手机App,操作更方便哦 阅读全文
posted @ 2021-07-08 15:56 酷酷的城池 阅读(48) 评论(0) 推荐(0) 编辑
摘要: $cookie_file = tempnam('./temp','cookie');curl_setopt($ch,CURLOPT_FOLLOWLOCATION,true);curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie_file); 阅读全文
posted @ 2021-06-09 11:44 酷酷的城池 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 传送门 阅读全文
posted @ 2021-05-27 17:48 酷酷的城池 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页