随笔分类 -  Ops

摘要:目录 简介 核心特性 安装 uv Linux / macOS / WSL Windows Python 版本管理 安装和管理 Python 版本 项目环境管理 为新项目创建环境 为已有代码创建环境 依赖管理 添加依赖 从已有依赖文件迁移 从 requirements.txt 导入 使用已有 pypr 阅读全文
posted @ 2025-10-22 02:32 LexLuc 阅读(12) 评论(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 阅读(15) 评论(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 阅读(1747) 评论(0) 推荐(0)
摘要:预热 pre-warm AWS EBS Volume 阅读全文
posted @ 2024-11-05 22:28 LexLuc 阅读(138) 评论(0) 推荐(0)
摘要:AWS EC2 S3 文件对象 上传 下载 复制 共享 阅读全文
posted @ 2024-10-31 01:21 LexLuc 阅读(76) 评论(0) 推荐(0)
摘要:vscode launch.json template 模板 debug 阅读全文
posted @ 2024-09-04 21:49 LexLuc 阅读(49) 评论(0) 推荐(0)
摘要:什么是可突发实例(Burstable Instances)? 理解CPU Credit 什么是CPU Credit 如何积累CPU Credit 消耗CPU Credit 突发带宽(Burstable Bandwidth)概述 支付CPU Credit费用 标准使用 无限模式 成本管理与优化 总结 阅读全文
posted @ 2024-08-25 01:35 LexLuc 阅读(184) 评论(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 阅读(36) 评论(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 阅读(366) 评论(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 阅读(620) 评论(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 阅读(17) 评论(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 阅读(2778) 评论(0) 推荐(0)
摘要:问题描述 源表数据将HBase集群内节点的存储空间撑爆,导致HBase集群内节点拒绝服务; 思路 筛选出没用且占用空间最大的n张表,通过hbase client删除。 修复步骤 查询HDFS占用空间情况:hdfs dfs -df -h; 确认是否是HBase表占用的空间比较大:hdfs dfs -d 阅读全文
posted @ 2023-03-02 20:00 LexLuc 阅读(267) 评论(0) 推荐(0)
摘要:/etc/hosts.allow与/etc/hosts.deny的判定机制 读取/etc/hosts.allow文件,从上到下读取: 如果守护程序-客户端对与文件中的第一行匹配,则授予访问权限; 如果该行不匹配,则读取下一行并执行相同的检查; 如果读取了所有行,但没有匹配,则从顶部开始读取/etc/ 阅读全文
posted @ 2023-02-21 22:27 LexLuc 阅读(1588) 评论(0) 推荐(0)
摘要:Tmux 是一种常用的 Terminal Multiplexer,其开源特性可支持无限功能扩展。 一个 Session 可分多个 Window,一个 Window 可以分多个 Pane 的功能特性,比较方便操作多个应用; 创建的 Session 运行在服务上;不慎关闭 terminal 窗口,不会停 阅读全文
posted @ 2020-10-09 15:53 LexLuc 阅读(457) 评论(0) 推荐(0)
摘要:作为程序员,搭建属于自己的服务器可以部署自己的网站,可以配置代理科学上网,了解国际前沿科技;一些高性能的服务器还可以完成一些云计算、深度学习模型的训练任务。 DigitalOcean 服务启动 注册 DigitalOcean 目前国内可以正常访问 "DigitalOcean 官网" ,通过 "我的推 阅读全文
posted @ 2019-03-02 13:48 LexLuc 阅读(2892) 评论(0) 推荐(0)