随笔分类 - Linux
摘要:关于树莓派(debian 系统)我看很多网上的教程都是修改 /etc/network/interfaces 文件,其实这种方法是不对的,其中提示信息很明确: # Please note that this file is written to be used with dhcpcd # For st
阅读全文
摘要:两种方法都可以安装 ffmpeg 直接执行 apt install ffmpeg 命令 下载预编译好的静态二进制文件 https://johnvansickle.com/ffmpeg/ https://github.com/yt-dlp/FFmpeg-Builds/releases
阅读全文
摘要:创建一个服务文件:在 /etc/systemd/system/ 目录下创建一个以 .service 结尾的文件,比如 myservice.service [Unit] Description=My Service After=network.target [Service] ExecStart=/p
阅读全文
摘要:生成配置文件 /etc/netplan/ 01-netcfg.yaml 01-network-manager-all.yaml 50-cloud-init.yaml sudo netplan generate 配置静态 ip address #network: version: 2 renderer
阅读全文
摘要:清空文件内容:gg dG 替换文本 :%s/old/new/g
阅读全文
摘要:docker ps 命令: -a,–all 展现出来所有状态的容器 Show all containers (default shows just running) -f,–filter 过滤显示 Filter output based on conditions provided –format
阅读全文
摘要:cat Dockerfile >> FROM node:20.14.0-alpine3.20 EXPOSE 36592 RUN npm install -g migpt-server --registry=https://registry.npmmirror.com ENTRYPOINT ["mig
阅读全文
摘要:更换国内稳定速度快的镜像源即可 比如 https://mirrors.ustc.edu.cn/ubuntu/ 本人使用阿里的镜像一直失败,更换中科大源就正常了,奇怪,阿里也不行了。。
阅读全文