分类: 中间件

8 篇文章

json通用小票打印机方案
Json 模板描述语言 1.text 文本行 { 'type' :'text',// 类型 'content':'驻客云打印测试信息', // 打印内容 'align' :'center',// 是否居中 left/right/center/between(,隔开) 'bold':true, // 加粗 'size':1 // 文本字体大…
RabbitMQ 消息队列-php使用
tips: 打开宝塔和阿里云上的端口放行 端口 15672: HTTP API clients, management UI and rabbitmqadmin (only if the management plugin is enabled)61613, 61614: STOMP clients without and with TLS (on…
Redis 常用命令
初始化redis 对象 // 这里使用php 自带redis类(非tp 的redis缓存类) $this->redis = new \Redis(); $redisConfi = Config('redis'); $this->redis->connect($redisConfi['host'], $redisConfi&…
全文检索 ElasticSearch整理3 PHP-ES的曾查改删
以TP5.1框架为准,ElasticSearch的依赖安装 在ElasticSearch的官网中进行composer的命令行复制即可。 这里需要注意的是,我下载的ElasticSearch版本是8.2.0版本,PHP的ElasticSearch依赖包对应的事7.11版本。如果用的不是该版本可能会出现ElasticSeearch无法正常与PHP链接。…
全文检索 ElasticSearch整理2 创建索引到模糊搜索
当ElasticSearch正常启动后,我们就可以利用Kibana图形化界面进行对ElasticSearch的简单使用 1、创建一个索引 PUT huaifeng # 创建一个索引 索引名称为huaifeng { "mappings": { # 以映射的方式创建 "properties": { # 映射的参数 "title":{ # 参数名称 "t…
ElasticSearch 常用命令
1.创建索引 PUT users { "mappings": { "properties": { "name":{ "type": "keyword" }, "age":{ "type": "integer" }, "remark":{ "type": "text" } } } } 2.添加索引结构 PUT users/_mapping { "pr…
ELK 安装
方式一:本地安装 下载 elasticsearch,logstash,kibana,ik分词器 https://www.elastic.co/cn/downloads/elasticsearchhttps://www.elastic.co/cn/downloads/logstashhttps://www.elastic.co/cn/download…