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
1
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 准备工作环境 系统:
98
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
592
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 docker.elastic.co/elasticsearch/elasticsearch:8.5.3 因为 Spring Boot 3.0.1 对应的 Spring Data Elasticsearch 5.0.0 对应的 Elasticsearch 的版本为 8.5.3 ,所以本文以此版本为例 系统配置修改 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 &
65
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.0.1 对应的 Spring Data Elasticsearch 5.0.0 对应的 Elasticsearch 的版本为 8.5.3 ,所以本文以此版本为例 打开下载地址, Versions 选择 8.5.3 ,点击 Download ,再点击 WINDOWS 下载即可 elasticsearch-analysis-ik ik中文分词器,推荐必装 下载地址:https://github.com/medcl/elasticsearch-analysis-ik/releases 下载对应的 8.5.2 版本 zip 包。注意!是zip包! PS:由于作者未更新至 8.5.3 ,所以
40
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.0.1 对应的 Spring Data Elasticsearch 5.0.0 对应的 Elasticsearch 的版本为 8.5.3 ,所以本文以此版本为例 打开下载地址Versions 选择 8.5.3点击 Download分两种 点击 LINUX X86_64 下载至本地,下载完成后上传至服务器右击 LINUX X86_64 复制链接,在服务器上使用 wget 命令执行下载 PS:为啥不用 rpm 包?因为 rpm 包安装好之后文件散落在不同的文件夹内,虽然官方详细介绍了各个文件夹在哪以及干嘛用的。 rpm 包官方教程:Install Elasticsearch with RPM elasticsearch-analysi
20
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
5
2022/11/03
Java Linux Maven Docker
官方文档:Repository Manager 3 参考教程: Nexus搭建Maven私服并使用私服记录解决maven无法下载snapshot快照库maven 打包源代码 jar 与 jar-no-fork 安装下文介绍了两种安装方式,宿主机安装 和 Docker环境安装 宿主机安装(CentOS7)环境准备nexus 需要运行在 jdk1.8 环境下,安装 jdk 可以参考:CentOS7配置jdk 下载在官方文档中按如下顺序点击:Product Information -> Download -> Download Archives - Repository Manager 3 点击 Unix archive 后面的下载链接进行下载并上传 安装# 解压 tar -zxf nexus-3.42.0-01-unix.tar.gz # 移动程序目录到指定文件夹并重命名 mv nexus-3.42.0-01 /usr/local/nexus # 移动工作目录到指定文件夹 mv sonatype-work/ /usr/local/ # 删除压缩包 rm -rf nexus-3
42
2022/10/12
Linux
安装# CentOS7 yum -y install nload # Debian11 apt-get install nload 命令格式# 查看网速 nload [options] [devices] # 查看命令帮助文档 nload --help|-h 参数 默认值 说明 -a period 300 设置平均网速的统计时长(单位:秒) -m 同时显示多个设备,没有流量图 -i max_scaling 10240 传入带宽使用情况图的 100% 值(单位: kBit/s )如果 max_scaling 为 0 或开启 -m 则忽略。 -o max_scaling 10240 与 -i 相同,传出带宽使用情况图 -t interval 500 显示的刷新间隔。(单位:毫秒) -u h\b\k\m\g\H\B\K\M\G h 设置用于显示流量的单位类型。h: auto, b: Bit/s, k: kBit/s, m: MBit/s 以此类推。H: auto, B: Byte/s, K: kByte/s, M: MByte/s 以此类推。 -U
133