IPFS私链搭建流程

2020-01-15  本文已影响0人  JC86

environment:
操作系统: CentOS Linux release 7.5.1804 (Core)
docker: v0.4.22
go: go1.13.3 linux/amd64

yum install docker
systemctl enable docker # 开机启动
systemctl start docker  # 启动docker
docker pull ipfs/go-ipfs
docker run -d --name ipfs_host \ 
    -v /ipfs/export:/export \      
    -v /ipfs/data:/data/ipfs \      
    -p 4001:4001 \                  
    -p 5001:5001 \
    -p 8000:8080 \
    ipfs/go-ipfs:latest
go get -u github.com/Kubuxu/go-ipfs-swarm-key-gen/ipfs-swarm-key-gen

$GOPATH/ipfs-swarm-key-gen > swarm.key
docker exec ipfs_host ipfs bootstrap rm --all
docker restart ipfs_host
docker exec ipfs_host ipfs swarm peers
上一篇下一篇

猜你喜欢

热点阅读