分类 默认分类 下的文章
Ubuntu20.04中使用snap安装的docker如何修改registry-mirrors
如图:
通过 systemctl status snap.docker.dockerd.service
命令,可以找到daemon.json的路径
Ubuntu20.04中使用snap安装的docker如何开启远程访问?
转发:https://superuser.com/questions/1431826/expose-api-over-tcp-of-snap-installed-docker-on-ubuntu-18-04
@Rumdex
By running:systemctl status snap.docker.dockerd.service
I was able
to see which was the loaded service file:/etc/systemd/system/snap.docker.dockerd.service
Just looked inside
this file looking for theExecStart
directive. It was there. So just
had to add-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
to
that line, so it ended up looking like:ExecStart=/usr/bin/snap run docker.dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
Rebooted. Works.
文件名中出现^M导致java.io.FileNotFoundException
问题如图所示:
解决方案:vi filename打开文件,执行 : set ff=unix 设置文件为unix,然后执行:wq,保存成unix格式
参考:https://blog.csdn.net/ygy162/article/details/105364096/
用多个密钥解密同一个密文
思想借鉴:https://www.zhihu.com/question/266180268
从严格意义上来说, 这并不是某个加密算法,能够同时允许多个密钥解密。 而是对称加密和非对称加密算法配合,实现将数据加密分发给多个人,能够让不同人使用自己的密钥解密数据
在线测试:Secret (caoxuan.top)
Demo(AES+RSA):