Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | 云栖社区 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Github | Search | About

33.2. 安装 IPFS

33.2.1. go get 方式

			
$ go get -u -d github.com/ipfs/go-ipfs

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

33.2.2. 安装 ipfs-update

ipfs-update 是一个 ipfs 版本管理工具,可以通过这个工具安装ipfs 和升级 ipfs.

			
# go get -u github.com/ipfs/ipfs-update

# ipfs-update install latest
			
			

33.2.3. Ubuntu

			
neo@netkiller ~ % sudo apt install golang1.9			
			
			

33.2.4. Netkiller OSCM

33.2.4.1. 源码安装

						
curl -s https://raw.githubusercontent.com/oscm/shell/master/distributed/ipfs/go-ipfs-0.4.14.sh | bash
curl -s https://raw.githubusercontent.com/oscm/shell/master/distributed/ipfs/ipfs-update-1.5.2.sh | bash
				
				

33.2.4.2. ipfs-update

				
[root@netkiller ~]# curl -s https://raw.githubusercontent.com/oscm/shell/master/lang/golang/golang-1.11.sh | bash					
[root@netkiller ~]# curl -s https://raw.githubusercontent.com/oscm/shell/master/distributed/ipfs/ipfs-update.sh | bash

[root@netkiller ~]# ./go/bin/ipfs-update versions
[root@netkiller ~]# ./go/bin/ipfs-update install latest				
				
				

33.2.5. Mac OS

			
neo@MacBook-Pro ~ % brew install ipfs