随笔分类 -  Linux

1 2 3 4 5 ··· 19 下一页
摘要:需求:在一台电脑安装双系统 因为安装Windows操作系统会破坏引导所以安装顺序必须是先安装Windows后安装Linux 安装Windows操作系统 只有一块盘则先删除所有分区然后分一部分空间用来安装Windows 安装Linux操作系统 本次以安装UOS操作系统为例 使用剩余的空间安装至少创建一 阅读全文
posted @ 2025-11-06 13:49 minseo 阅读(66) 评论(0) 推荐(0)
摘要:需求 需要批量给一批次电脑添加定时任务 编写yml文件 # cat deploy_check_flanneld.yml - name: 部署 flanneld 检查脚本 + 定时任务 hosts: k8snode become: yes tasks: - name: 分发检查脚本 ansible.b 阅读全文
posted @ 2025-11-05 10:54 minseo 阅读(13) 评论(0) 推荐(0)
摘要:k8s集群node节点flanneld服务down的检查重启脚本 # cat check_flanneld.sh #!/bin/bash # 服务名称 FLANNEL_SERVICE="flanneld" DOCKER_SERVICE="docker" # 检查 flanneld 是否运行 if ! 阅读全文
posted @ 2025-11-05 10:51 minseo 阅读(7) 评论(0) 推荐(0)
摘要:Github地址 https://github.com/astral-sh/uv/tree/main 文档地址 https://docs.astral.sh/uv/#highlights uv是一个用 Rust 编写的极其快速的 Python 包和项目管理工具 环境查看 系统环境 # cat /et 阅读全文
posted @ 2025-10-11 14:34 minseo 阅读(169) 评论(0) 推荐(0)
摘要:参考 https://redis.io/docs/latest/operate/oss_and_stack/install/archive/install-stack/docker/ 环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9. 阅读全文
posted @ 2025-10-11 09:39 minseo 阅读(30) 评论(0) 推荐(0)
摘要:创建用户并授权 需要使用本地地址127.0.0.1连接MySQL数据库否则可能授权失败 > create user zentao@'%' identified by 'password'; > grant all on zentao.* to zentao@'%'; > flush privileg 阅读全文
posted @ 2025-10-10 10:38 minseo 阅读(16) 评论(0) 推荐(0)
摘要:如果是使用docker部署则进入docker后需要切换用户 su - postgres 进入数据库 psql 列出所有数据库 \l \list 查询表 # 表名需要加引号 select * from "table_name"; 条件查询加where 一一对应显示 \x 阅读全文
posted @ 2025-09-09 11:16 minseo 阅读(7) 评论(0) 推荐(0)
摘要:参考 https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.526b1b11JmhoPC 环境查看 系统环境 # cat /etc/redhat-release CentOS Linux release 7.9.2009 阅读全文
posted @ 2025-09-08 14:35 minseo 阅读(67) 评论(0) 推荐(0)
摘要:Minio服务器重启之后一定要同步时间 阅读全文
posted @ 2025-08-29 19:54 minseo 阅读(13) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # cat /etc/kylin-release Kylin Linux Advanced Server release V10 (Lance) # uname -a Linux KylinServer198 4.19.90-52.22.v2207.ky10.x86_64 #1 阅读全文
posted @ 2025-08-27 10:10 minseo 阅读(17) 评论(0) 推荐(0)
摘要:参考 https://opentelemetry.io/zh/docs/demo/docker-deployment/ 阅读全文
posted @ 2025-08-19 16:45 minseo 阅读(16) 评论(0) 推荐(0)
摘要:环境查看 系统环境 $ lsb_release -a No LSB modules are available. Distributor ID: Kylin Description: Kylin V10 SP1 Release: v10 Codename: kylin $ uname -a Linu 阅读全文
posted @ 2025-08-14 11:04 minseo 阅读(12) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # lsb_release -a No LSB modules are available. Distributor ID: Kylin Description: Kylin V10 SP1 Release: v10 Codename: kylin # uname -a Linu 阅读全文
posted @ 2025-08-13 11:37 minseo 阅读(93) 评论(0) 推荐(0)
摘要:设置配置文件 填写完整的启动命令 使用绝对路径 # cat /usr/lib/systemd/system/redis.service [Unit] Description=Redis In-Memory Data Store After=network.target [Service] ExecS 阅读全文
posted @ 2025-08-05 13:53 minseo 阅读(25) 评论(0) 推荐(0)
摘要:安装 curl -LsSf https://astral.sh/uv/install.sh | sh 加到系统命令 cp /root/.local/bin/uv /usr/bin/ 阅读全文
posted @ 2025-07-28 16:31 minseo 阅读(32) 评论(0) 推荐(0)
摘要:安装依赖 npm install 更新依赖 npm update 打包 npm run build:prod 直接运行 npm run dev 阅读全文
posted @ 2025-07-16 09:50 minseo 阅读(33) 评论(0) 推荐(0)
摘要:环境查看 系统环境 # lsb_release -a No LSB modules are available. Distributor ID:Ubuntu Description:Ubuntu 20.04.4 LTS Release:20.04 Codename:focal # uname -a 阅读全文
posted @ 2025-07-15 17:51 minseo 阅读(174) 评论(3) 推荐(1)
摘要:环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) # uname -a Linux RockyEs01003081 5.14.0-427.35.1.el9_4.x86_64 #1 SMP PREEMPT_D 阅读全文
posted @ 2025-07-14 14:44 minseo 阅读(40) 评论(0) 推荐(0)
摘要:需求:Tempo数据默认保存时间为1小时,需要保存的时间长一点 修改配置文件 # cat /etc/tempo/config.yml # 修改以下参数默认该参数值为1h # 需要设置成h不能使用d已天为单位 block_retention: 168h 2. 重启tempo # systemctl r 阅读全文
posted @ 2025-07-14 14:23 minseo 阅读(18) 评论(0) 推荐(0)
摘要:环境查看 系统环境 软件环境 设置SMTP 重置密码 阅读全文
posted @ 2025-07-02 13:46 minseo 阅读(13) 评论(0) 推荐(0)

1 2 3 4 5 ··· 19 下一页