树莓派使用SSD后PCIe Gen 3.0测速

启用PCIe Gen 3.0前测速
li@raspberrypi:~ $ dd if=/dev/zero of=/tmp/tempfile bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 9.02906 s, 443 MB/sli@raspberrypi:~ $ dd if=/tmp/tempfile of=/dev/null bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 8.4739 s, 472 MB/s
启用PCIe Gen 3.0后测速:
li@raspberrypi:~ $ dd if=/dev/zero of=/tmp/tempfile bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 4.82376 s, 829 MB/sli@raspberrypi:~ $ dd if=/tmp/tempfile of=/dev/null bs=4MB count=10001000+0 records in1000+0 records out4000000000 bytes (4.0 GB, 3.7 GiB) copied, 4.86248 s, 823 MB/s
可以看到,树莓派5启用PCIe Gen 3.0后,数据写入速度达到829 MB/s,读取速度达到823 MB/s,相比SD卡和PCIe Gen 2.0是有很大的提升!阅读全文

解决docker启动报故“Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xeu docker.service” for details.”

修改Docker镜像源之后,重启Docker,执行systemctl restart docker.service, 然后报故障
li@raspberrypi:/etc/docker $ sudo systemctl start dockerJob for docker.service failed because the control process exited with error code.See "systemctl status docker.service" and "journalctl -xeu docker.service" for details.
解决办法:1.进入docker目录:
$ cd /etc/docker/
2.修改daemon文件类型:
$ sudo mv daemon.json daemon.conf
3.启动docker
$ sudo systemctl start docker
问题解决!阅读全文
使用 BWHCGLUKKB 优惠码再省6.77%

搬瓦工邀请码分享(仅有十个,手慢无)

科技爱好者博客获得了十个独家邀请码,可以低价购买搬瓦工BIGGERBOX限量版套餐。可选搬瓦工DC99机房,1Gbps带宽,位于美国洛杉矶数据中心,提供CN2 GIA线路。服务器1核1G,20GB SSD,每个月有1000GB流量,使用我的优惠码后年付34.5美元。此独家限时优惠仅可通过邀请码访问,为了表达我们的感激之情,我们为您提供10个邀请码,与您的家人、朋友或客户分享。订单链接:https://bwh81.net/aff.php?aff=3611&pid=152邀请码:
bwh_HDq4ZyLDWJS1qUuXguZNFuP4P9PWbwh_FFWc8c6XAIqnh9fxTzl0UbEqwjkbbwh_j0YOvKRtNOhdmyrtxwRhW28G4CWqbwh_M7sVYgzjRgDuULy79Pqxc8EY1CvVbwh_5hbHfts3ASdiZHCKi1HhHYEKW8yNbwh_BUyw2A37Um1l54tUCWuKO2RlQmVDbwh_lkgM4F9W63URfM2bHlV98gJM8rXPbwh_DJiOUoqOUqBQjmxpYqqwBbvAi4cgbwh_l0VPA4tkiKZ30rJ9E7ptnPPHagPbwh_5iWh9IWzCgKLQAEGReGlcVEprk5Y
这些邀请码的有效期只有几天,每个邀请码只能用于一个订单。最终价格为34.5每年,先到先得,作为大家的福利。另外,如果用了邀请码,请在评论区说一下,免得试好几个。阅读全文