摘要: 解决方案:配置传输层 SSL 按照以下步骤操作,为集群配置证书并启用 SSL。 第一步:生成证书(在 es-node1 上操作) 进入 es-node1 容器,使用内置工具 elasticsearch-certutil 生成证书。 bash # 1. 进入 es-node1 容器 docker ex 阅读全文
posted @ 2026-09-13 19:13 Binky.Lee 阅读(31) 评论(0) 推荐(0)
摘要: 关闭 SELinux setenforce 0 getenforce 防火墙配置 firewalld --zone=public --add-port=9200/tcp --permanent firewalld --zone=public --add-port=9300/tcp --permane 阅读全文
posted @ 2026-09-13 18:12 Binky.Lee 阅读(13) 评论(0) 推荐(0)
摘要: 往 ES 添加测试数据有几种常用方式,下面按从简单到实用的顺序介绍。 方法一:用 curl 直接写入单条数据 Elasticsearch 是 REST API,直接发 POST/PUT 请求即可。 bash # 写入一条文档,指定索引名 test-index,类型 _doc,ID 为 1 curl 阅读全文
posted @ 2026-09-13 14:59 Binky.Lee 阅读(15) 评论(0) 推荐(0)
摘要: 1. docker-compose.yml yaml version: '3.8' # Docker Compose 文件版本 services: elasticsearch: image: elasticsearch:8.15.2 # 使用的 Elasticsearch 镜像版本 containe 阅读全文
posted @ 2026-09-13 14:39 Binky.Lee 阅读(22) 评论(0) 推荐(0)
摘要: pptp 会频繁的掉线。。。 so, 更换为 L2TP/IPsec 的方式,注意要开放 UDP端口 500,4500,1701 1>. 更新系统 yum -y update 2>. 使用以下命令快速搭建 IPsec VPN 服务器 wget https://git.io/vpnsetup-cento 阅读全文
posted @ 2020-09-04 18:56 Binky.Lee 阅读(3004) 评论(1) 推荐(0)
摘要: 问题: 输入下面代码放在 // router>index.js中添加代码: ,路由文件里面即可解决问题 import Vue from "vue"; import Router from "vue-router"; Vue.use(Router); // 解决element-ui点击同一个路由报错: 阅读全文
posted @ 2020-04-10 14:19 Binky.Lee 阅读(478) 评论(0) 推荐(0)
摘要: 第一步: 新建模板并保存 文件 --> 首选项 --> 用户代码片段 --> 输入vue,选择创建模板 填写vue.json -->复制 第三步中的模板内容中内容保存 第二步: 添加配置,让vscode允许自定义的代码片段提示出来 文件 --> 首选项 --> 设置 > 添加这2项 // Speci 阅读全文
posted @ 2020-04-10 11:27 Binky.Lee 阅读(4613) 评论(0) 推荐(1)
摘要: vetur、Prettier - Code formatter、ESLint一起安装: 设置:在打开的窗口中的【文件】 【首选项】 【用户设置】中加入下面内容: { // prettier:每行在这个字符数内整合代码,如果你的屏幕较宽分辨率较高可以适当加大 "prettier.printWidth" 阅读全文
posted @ 2020-04-10 11:06 Binky.Lee 阅读(5185) 评论(0) 推荐(0)
摘要: main.js import axios from 'axios' //Vue.use(axios) // 创建axios实例 const ajax = axios.create({ baseURL: 'http://127.0.0.1:8888/api/private/v1/' }) // 拦截请 阅读全文
posted @ 2020-04-09 16:05 Binky.Lee 阅读(2078) 评论(0) 推荐(0)