Ubuntu 20.04 启动过程太长,发现启动时长时间等在这里: A start job is running for wait for network to be configured. 启动后进入系统,执行 Linux 系统启动性能统计分析命令: systemd-analyze blame 2min 126ms systemd-networkd-wait-online.service 2.774s systemd-udev-settle.service ... systemd-networkd-wait-online.service 这里等待了持续两分钟 解决方法: Edit /etc/netplan/01-netcfg.yaml and add optional: true to any devices that may not always be available. sudo netplan appl...
2022年4月
嵌入式、物联网技术交流分享Linux 比较两个文件夹
1、diff 方法 diff -qr dir1 dir2 -q 或 --brief 仅显示有无差异,不显示详细的信息。 -r 或 --recursive 比较子目录中的文件。 2、md5 方法 Copy 文件夹之后,检测两个文件夹(dir1,dir2)下文件是否相同。 cd dir1 find ./ -type f -exec md5sum {} \; | sort -k 2 > logdir/dir1.txt cd dir2 find ./ -type f -exec md5sum {} \; | sort -k 2 > logdir/dir2.txt cd logdir diff dir1.txt dir2.txt logdir 是任意一个存放生成文件的目...
解决向 Jenkins( Windows) 添加 Git 仓库时报错的问题
向 Jenkins( Windows) 添加 Git 仓库时总是报错,当添加 HTTPS 仓库地址时报错: Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h -- >https://git.***.com/gitlab/git.git HEAD" returned status code 128: stdout: stderr: fatal: unable to access 'https://git.***.com/gitlab/git.git/': OpenSSL SSL_connect: >SSL_ERROR_SYSCALL in connection to git.***.com:443 当添加 SSH 仓库地址时报错: Failed to connect to repository : Command "C:\Program Files\Git\bin\git.exe ls-remote -h -- >git@git.***.com:gitlab/git.git HEAD" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists...