IPFS

作者: 罗雪Melody | 来源:发表于2018-05-12 09:54 被阅读0次
  • http 存储浪费
  • 七牛云服务器会被盗用
  • 安装


    image.png
ipfs init
image.png
  • 创建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

相关文章

网友评论

      本文标题:IPFS

      本文链接:https://www.haomeiwen.com/subject/fjpwrftx.html