随笔分类 -  Ops

摘要:问题描述 在使用 Git 时,如果文件名包含中文或其他非 ASCII 字符,执行 git status 等命令时会看到类似这样的输出: $ git status On branch main Untracked files: (use "git add <file>..." to include i 阅读全文
posted @ 2025-12-11 00:03 LexLuc 阅读(10) 评论(0) 推荐(0)
摘要:TL;DR(太长不看版) 核心思想: 用密钥对(公钥+私钥)替代密码登录,公钥放服务器,私钥留本地,登录时加密验证,安全又方便。 快速操作步骤: # 1. 本地生成密钥对 ssh-keygen -t ed25519 -C "your_email@example.com" -f ~/.ssh/my_s 阅读全文
posted @ 2025-11-24 20:14 LexLuc 阅读(67) 评论(0) 推荐(0)
摘要:目录 简介 核心特性 安装 uv Linux / macOS / WSL Windows Python 版本管理 安装和管理 Python 版本 项目环境管理 为新项目创建环境 为已有代码创建环境 依赖管理 添加依赖 从已有依赖文件迁移 从 requirements.txt 导入 使用已有 pypr 阅读全文
posted @ 2025-10-22 02:32 LexLuc 阅读(301) 评论(0) 推荐(0)
摘要:开头 最近给一个React项目配Docker构建,碰到了一个看起来简单实际很麻烦的错误: Failed to compile. The target environment doesn't support dynamic import() syntax so it's not possible to 阅读全文
posted @ 2025-09-29 16:50 LexLuc 阅读(24) 评论(0) 推荐(0)
摘要:1. 配置Anaconda PowerShell Prompt 找到Miniconda路径 [安装路径]\miniconda3\Scripts\activate.bat # 例如: D:\miniconda3\Scripts\activate.bat # 或: C:\Users\[用户名]\mini 阅读全文
posted @ 2025-09-22 14:23 LexLuc 阅读(3079) 评论(0) 推荐(0)
摘要:预热 pre-warm AWS EBS Volume 阅读全文
posted @ 2024-11-05 22:28 LexLuc 阅读(168) 评论(0) 推荐(0)
摘要:AWS EC2 S3 文件对象 上传 下载 复制 共享 阅读全文
posted @ 2024-10-31 01:21 LexLuc 阅读(89) 评论(0) 推荐(0)
摘要:vscode launch.json template 模板 debug 阅读全文
posted @ 2024-09-04 21:49 LexLuc 阅读(54) 评论(0) 推荐(0)
摘要:什么是可突发实例(Burstable Instances)? 理解CPU Credit 什么是CPU Credit 如何积累CPU Credit 消耗CPU Credit 突发带宽(Burstable Bandwidth)概述 支付CPU Credit费用 标准使用 无限模式 成本管理与优化 总结 阅读全文
posted @ 2024-08-25 01:35 LexLuc 阅读(207) 评论(0) 推荐(0)
摘要:配置代理 # set proxy $ git config --global http.proxy http://<账号>:<密码>@<主机>:<端口> $ git config --global https.proxy https://<账号>:<密码>@<主机>:<端口> # check pro 阅读全文
posted @ 2023-10-07 16:53 LexLuc 阅读(43) 评论(0) 推荐(0)
摘要:1. 下载二进制压缩包 https://www.enterprisedb.com/download-postgresql-binaries 2. 解压后在压缩包的bin目录下执行初始化DB命令 initdb.exe -D .\data -U pguser -W -E UTF8 -A scram-sh 阅读全文
posted @ 2023-09-11 16:27 LexLuc 阅读(392) 评论(0) 推荐(0)
摘要:# 关键信息记录 ## 1. 在WSL实测`nc`可实现代理流量转发 ``` ssh -i key.pem @ -o "ProxyCommand=nc -X connect -x : %h %p" ``` ## 2. windows无法使用`nc`,通过修改 VS-Code Remote-SSH 插 阅读全文
posted @ 2023-09-02 14:53 LexLuc 阅读(638) 评论(0) 推荐(0)
摘要:```bash sudo apt-get install openssl cd /etc/nginx sudo mkdir ssl sudo openssl req -batch -x509 -nodes -days 365 \ -newkey rsa:2048 \ -keyout /etc/ngi 阅读全文
posted @ 2023-07-18 02:00 LexLuc 阅读(24) 评论(0) 推荐(0)
摘要:问题描述 Java API报错 java.io.IOException: Unable to find region for 2520192391014818087 in $TABLENAME ; ERROR Utils: Aborting task org.apache.hadoop.hbase. 阅读全文
posted @ 2023-03-04 15:07 LexLuc 阅读(2863) 评论(0) 推荐(0)
摘要:问题描述 源表数据将HBase集群内节点的存储空间撑爆,导致HBase集群内节点拒绝服务; 思路 筛选出没用且占用空间最大的n张表,通过hbase client删除。 修复步骤 查询HDFS占用空间情况:hdfs dfs -df -h; 确认是否是HBase表占用的空间比较大:hdfs dfs -d 阅读全文
posted @ 2023-03-02 20:00 LexLuc 阅读(285) 评论(0) 推荐(0)
摘要:/etc/hosts.allow与/etc/hosts.deny的判定机制 读取/etc/hosts.allow文件,从上到下读取: 如果守护程序-客户端对与文件中的第一行匹配,则授予访问权限; 如果该行不匹配,则读取下一行并执行相同的检查; 如果读取了所有行,但没有匹配,则从顶部开始读取/etc/ 阅读全文
posted @ 2023-02-21 22:27 LexLuc 阅读(1613) 评论(0) 推荐(0)
摘要:Tmux 是一种常用的 Terminal Multiplexer,其开源特性可支持无限功能扩展。 一个 Session 可分多个 Window,一个 Window 可以分多个 Pane 的功能特性,比较方便操作多个应用; 创建的 Session 运行在服务上;不慎关闭 terminal 窗口,不会停 阅读全文
posted @ 2020-10-09 15:53 LexLuc 阅读(479) 评论(0) 推荐(0)