- http 存储浪费
- 七牛云服务器会被盗用
-
安装
image.png
ipfs init

-
创建ipfs节点
image.png
打开
http://localhost:5001/webui
- 运行
ipfs cat /ipfs/QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG/readme
- 写入ipfs
(py3) luoxuedeMBP:desktop luoxue$ cd demo
(py3) luoxuedeMBP:demo luoxue$ mkdir 1228
(py3) luoxuedeMBP:demo luoxue$ cd 1228
(py3) luoxuedeMBP:1228 luoxue$ cat > file.txt
hello
^C
(py3) luoxuedeMBP:1228 luoxue$ cat file.txt
hello
-
file前面会生成hash
image.png
-
在ipfs上查看
image.png
注意如果修改文件,再次上传,会生成不一样的hash
-
放在ipfs网址端
image.png
网友评论