• 比如大小写快捷键希望定义成 ctrl + shift + u 和 ctrl + shift + l。 如果直接修改,会保存在 /root/.local/share/code-server/User/keybindings.json 文件中,该文件不属于 CNB 自动保存的 漫游内容(按用户维度进行漫游) 。 漫游内容 (~: 当前用户的主目录...
    2025-09-02 08:01 前端
  • 宝塔面板 MySQL8 默认安装会设置成大小写不敏感。如将数据库迁移到其它 MySQL(Linux下MySQL默认大小敏感)时,会出现表名错误的问题。 配置里面把 lower_case_table_names 改成 0 删除data目录下内容。通常为 /www/server/data /www/server/mysql/bin/mysq...
    2025-08-17 03:48 服务器
  • 使用 SSH key 登录服务器具有更好的安全性,可防止暴力破解。 SSH key 类型 rsa:最常用,兼容性最好。默认使用 2048 长度密钥。 ed25519:最安全、加解密速度最快。如非有特殊的兼容性需求,是首选的类型。 生成方式 # ed25519 类型 ssh-keygen -t ed25519...
    2025-07-27 10:23 服务器
  • 查看服务器名称 cat /etc/hostname # 或者 hostnamectl --static 修改 /etc/hostname hostnamectl set-hostname <your-name> 修改后重新登录即可生效。 也可直接修改 /etc/hostname,需要重启后方可生效。 修改 /etc/hosts 修改服务器名后,通常需要修...
    2025-07-27 10:07 服务器
  • ProPlus2021Retail.img 版本不能使用 KMS 激活,必须使用 LTSC 版本。但 LTSC 版本的下载和安装都与众不同,不熟悉的会无从下手。 官方教程:https://learn.microsoft.com/en-us/office/troubleshoot/installation/how-to-download-office-install-not-in-v...
    2025-06-26 15:26 服务器
  • Windows git 默认支持 lfs。但 gitee 免费版不支持 git lfs,需特别注意。 设置 git lfs git lfs install 扫描仓库 扫描仓库查看有哪些大文件存在: # linux git ls-files | grep -E '\.psd|\.jpg' # windows git ls-files | Select-String -Pattern '\.psd...
    2025-06-08 09:26 后端
  • Linux 服务器之间传输文件主要有 scp rsync sftp tar + ssh。其中 sftp tar + ssh 较为常用。 sftp 可以使用 ftp 客户端,有图形化界面,交互比较方便。但大量小文件传输时,比较消耗时间。 tar + ssh 使用打包、压缩加 SSH,兼顾安全和速度。使用命令行操作...
    2025-05-27 09:14 服务器
  • K8s 由于没有暴露用于 ssh 的 22 端口,无法使用 ssh 传输文件。这时可以安装 linuxserver/openssh-server,通过共享存储卷,实现文件传输功能。 官网地址:https://hub.docker.com/r/linuxserver/openssh-server 配置 Docker Compose 配置如下: services:...
    2025-05-27 09:01 服务器
  • Git 在提交文件后,发现某些文件不用提交,这时只加上 .gitignore 不会起作用。 创建 .gitignore # cp /src/main/webapp/cp 删除缓存中已提交的文件 # git rm -r --cached <file> git rm -r --cached /src/main/webapp/cp 提交 git commit -m "提...
    2025-05-24 10:16 后端
  • 如果希望 Docker Image 可以在不同平台的机器(如 linux/amd64, linux/arm64)上运行,需要创建多平台镜像。多平台镜像可以使用同样的名称,但会根据运行环境自动选择不同平台的镜像。 有两种方法来构建多平台镜像: 将 "classic" image store 经...
    2025-05-20 04:28 服务器
0791-85271700
QQ咨询:1779755751
QQ交流群:626599871
微信咨询
微信扫码咨询
微信交流群
微信交流群
Powered by UJCMS © 2010-2025 All Rights Reserved
QQ咨询
电话
微信
微信扫码咨询