改用Hexo了
换个玩玩。
顺便把page的源,从docs/
目录改为了直接在Github Actions里上传和发布,简化一下仓库。
另外Hexo比Hugo多一个“分类”的支持,但是Github issue只有Labels,被用来当做“标签”了……空了再看拿哪个字段来当分类。
换个玩玩。
顺便把page的源,从docs/
目录改为了直接在Github Actions里上传和发布,简化一下仓库。
另外Hexo比Hugo多一个“分类”的支持,但是Github issue只有Labels,被用来当做“标签”了……空了再看拿哪个字段来当分类。
升级系统后,web UI显示docker是关闭状态,点击开关提示“未知错误”。
SSH登录看docker服务是正常运行的。
Root Dir也是正确的。但是 container没起来。
尝试升级docker,重启后还是一样。
最后想起配置文件之前加了一个代理,而这个代理是飞牛OS里一个定时任务启动的,把代理配置从/etc/docker/daemon.json
里删掉重启OK了。。。
猜测(也许)是因为docker启动时间比代理进程早???
修改配置:
sudo vi /etc/docker/daemon.json
1 | { |
重启服务:
sudo systemctl restart docker
报错:
1 | E: Release file for http://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/jammy-updates/InRelease is not valid yet (invalid for another 2h 1min 40s). Updates for this repository will not be applied. |
同步时间解决:
1 | hwclock -s |
问题:
1 | $ ping github.com |
解决方法:
1 | sudo setcap cap_net_raw+p /bin/ping |
报错:
1 | failed to start daemon: Error initializing network controller: error obtaining controller instance: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain: (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables): RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1 |
解决:
1 | sudo update-alternatives --set iptables /usr/sbin/iptables-legacy |
参考:https://forums.docker.com/t/failing-to-start-dockerd-failed-to-create-nat-chain-docker/78269
https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
-fsanitize=address
, -fsanitize=thread
,…
管理员权限打开PowerShell,执行:
1 | wsl --install |
提示安装成功。但是启动WSL的时候报错:
1 | WslRegisterDistribution failed with error: 0x80370114 |
似乎是家庭版在“启用或关闭Windows功能”里看不到Linux子系统的功能,用命令行:
1 | dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart |
(第二个应该是在第一步就激活了的)
after setting ulimit -c unlimited
, if you still don’t get the core
file in the workding dir. try to run this:
1 | cat /proc/sys/kernel/core_pattern |
to get the path of the core dump files.
test env: Ubuntu 20.04 (WSL), you may get:
1 | /mnt/wslg/dumps/core.%e |