go-ipfs的基本操作

安装

cd $GOPATH/src/github.com/ipfs/go-ipfs
make install

报错 连接ipfs.io国内因为防护墙的原因连不上

shell.Get(): Post https://ipfs.io/api/v0/get?arg=QmXfkENeeBvh3zYA51MaSdGUdBjhQ99cP5WQe8zgr6wchG&encoding=json&stream-channels=true: dial tcp 69.63.176.15:443: connect: connection refused
retrying fetch QmXfkENeeBvh3zYA51MaSdGUdBjhQ99cP5WQe8zgr6wchG after a second...

解决方案

控制台翻墙
export http_proxy="http://127.0.0.1:1087"    
export https_proxy="http://127.0.0.1:1087"

你可能感兴趣的:(go-ipfs的基本操作)