2023/07/18   

Java  Elasticsearch  SpringBoot  

示例代码: SpringBoot2 GitHub:https://github.com/Max-Qiu/demo-SpringBoot2Gitee:https://gitee.com/Max-Qiu/demo-SpringBoot2 SpringBoot3 GitHub:https://github.com/Max-Qiu/demo-SpringBoot3Gitee:https://gitee.com/Max-Qiu/demo-SpringBoot3 官方教程:Spring Data Elasticsearch - Reference Documentation PS:本文只是一篇极其简单的连接配置整合教程,不涉及搜索示例,建议认真阅读官方文档 版本对应关系 Spring Boot Spring Data Elasticsearch Elasticsearch 2.4.x 4.1.x 7.9.3 2.5.x 4.2.x 7.12.1 2.6.x 4.3.x 7.15.2 2.7.x 4.4.x 7.17.10 3.0.x 5.0.x 8.5.

28

 2023/06/15   

Linux  Docker  Kubernetes  

官方文档:使用 kubeadm 引导集群 说明 本教程适用于开发或测试环境,因为仅有一个控制节点,生产环境应当有多个控制节点下文的命令除特殊说明外,在所有主机上都需要执行(2023-6-15)仅适用于 Debian 10 、 CentOS 7.9 ,在 Debian 11 / Debian 12 上安装完成后会有问题,暂时未找到原因 下文的机器环境信息如下: 主机名 ip 角色 node1 192.168.220.201 控制节点 node2 192.168.220.202 工作节点 node3 192.168.220.203 工作节点 系统检查与配置机器唯一性确保每个节点上 MAC 地址和 product_uuid 的唯一性 使用命令 ip link 或 ifconfig -a 来获取网络接口的 MAC 地址可以使用 cat /sys/class/dmi/id/product_uuid 命令对 product_uuid 校验 关闭防火墙默认情况下, Debian 系统未安装 firewalld 防火墙 systemctl stop firewalld

47

 2023/05/25   

Linux  Docker  

官方教程:https://docs.docker.com/engine/install/debian/阿里教程:https://developer.aliyun.com/article/110806 不推荐使用,仅用于获取阿里镜像地址 注:以下命令使用 root 账户 如果之前安装过docker,请先卸载旧版本apt-get remove docker docker.io containerd runc apt-get remove docker-engine 设置存储库更新 apt 包索引并安装包以允许 apt 通过 HTTPS 使用存储库apt-get update apt-get install ca-certificates curl gnupg 添加 Docker 的官方 GPG 密钥install -m 0755 -d

6

 2023/04/05   

OpenWrt  

推荐看完视频教程再来看此文章:软路由安装PVE虚拟机安装OpenWrt、爱快iKuai、NAS,打造all in one小主机,超详细!下文以官方 22.03.4 为例 前言用过大佬编译好的固件,也自己基于大佬的固件手动编译,最终还是决定用官方的源码编译,只加入自己想要的软件 相关链接: 官方的地址 源码:https://github.com/openwrt/openwrt固件:https://downloads.openwrt.org 大佬编译好的固件: bleach : 恩山论坛 每日更新 高大全/精简版 Openwrt x86 6.1内核 软路由固件eSir : https://drive.google.com/drive/folders/1uRXg_krKHPrQneI3F2GNcSVRoCgkqESr 打不开就算了 大佬的源码: Lean's LEDE : https://github.com/coolsnowwolf/ledeLienol's OpenWrt : https://github.com/Lienol/openwrt 准备工作环境 系统:

271

 2023/04/04   

PVE  

如果是用来装软路由的,推荐看完视频教程再来看此文章:软路由安装PVE虚拟机安装OpenWrt、爱快iKuai、NAS,打造all in one小主机,超详细! 简介Proxmox VE is a complete, open-source server management platform for enterprise virtualization. It tightly integrates the KVM hypervisor and Linux Containers (LXC), software-defined storage and networking functionality, on a single platform. With the integrated web-based user interface you can manage VMs and containers, high availability for clusters, or the integrated disaster recovery tools with ease. Proxmox V

1160

 2023/01/31   

Docker  Harbor  

官方教程:Harbor Installation and Configuration 安装条件硬件 资源 最小 推荐 CPU 2 CPU 4 CPU 内存 4 GB 8 GB 磁盘 40 GB 160 GB 软件 软件 版本 描述 Docker engine Version 17.06.0-ce+ or higher 教程:CentOS7安装Docker-CE Docker Compose docker-compose (v1.18.0+)或docker compose v2 (docker-compose-plugin) 按照上文教程会一起安装 docker compose v2 Openssl 最新版即可 用于为 Harbor 生成证书和密钥 下载地址:https://github.com/goharbor/harbor/releases 下文以 v2.7.0 为例,且当前用户为 root 下载安装包 offline :离线版,即压缩包内包含镜像文件,启动时自动导入 harbor-offline-installer-v2

11

 2023/01/14   

Docker  Elasticsearch  Kibana  

Elasticsearch 官方教程:Install Elasticsearch with Docker 镜像拉取docker pull elasticsearch:8.7.1 因为 Spring Boot 3.1.1 对应的 Spring Data Elasticsearch 5.1.1 对应的 Elasticsearch 的版本为 8.7.1 ,所以本文以此版本为例 系统配置修改 sysctl.conf编辑配置文件 vim /etc/sysctl.conf 添加如下设置 vm.max_map_count = 262144 net.ipv4.tcp_retries2=5 保存后执行以下命令立即生效 sysctl -p 检查 ulimits 的 nofile 和 nproc运行一个测试容器(运行时会拉取 centos 镜像,请耐心等待),输出默认值 docker run --rm centos:7 /bin/bash -c 'ulimit -Hn && ulimit -Sn && ulimit -Hu && ulim

126

 2023/01/14   

Windows  Elasticsearch  Kibana  

注:在 windows 上安装大部分是为了本地开发时更方便,单节点基本够用 Elasticsearch 官方教程:Install Elasticsearch with .zip on Windows 下载Elasticsearch下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch 因为 Spring Boot 3.1.1 对应的 Spring Data Elasticsearch 5.1.1 对应的 Elasticsearch 的版本为 8.7.1 ,所以本文以此版本为例 打开下载地址, Versions 选择 8.7.1 ,点击 Download ,再点击 WINDOWS 下载即可 elasticsearch-analysis-ik ik中文分词器,推荐必装 下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases 下载对应的 8.7.0 版本 zip 包。注意!是zip包! PS:由于作者未更新至 8.7.1 ,所

90

 2023/01/14   

Linux  Elasticsearch  Kibana  

Elasticsearch 官方教程:Install Elasticsearch from archive on Linux or MacOS 下载Elasticsearch全版本下载地址:https://www.elastic.co/cn/downloads/past-releases#elasticsearch 因为 Spring Boot 3.1.1 对应的 Spring Data Elasticsearch 5.1.1 对应的 Elasticsearch 的版本为 8.7.1 ,所以本文以此版本为例 打开下载地址Versions 选择 8.7.1点击 Download分两种 点击 LINUX X86_64 下载至本地,下载完成后上传至服务器右击 LINUX X86_64 复制链接,在服务器上使用 wget 命令执行下载 PS:为啥不用 rpm 包?因为 rpm 包安装好之后文件散落在不同的文件夹内,虽然官方详细介绍了各个文件夹在哪以及干嘛用的。 rpm 包官方教程:Install Elasticsearch with RPM elasticsearch-analysi

38

 2022/12/31   

Linux  Docker  Git  

安装所需最小内存为 4G ,推荐内存为 8G CentOS7在宿主机安装时,需要确认本机 ssh 的端口是 22 ,否则在使用 ssh 协议执行 git clone 时要修改端口 安装依赖# 安装依赖 yum install -y curl policycoreutils-python openssh-server perl # 确保 sshd 服务已启动(默认情况下已配置) systemctl enable sshd systemctl start sshd # 如果启动了防火墙,则需要开放端口(80/443) firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-service=https systemctl reload firewalld 配置镜像curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash 安装EXTERNAL_URL=&quo

6

L A B E L