Home | 簡體中文 | 繁體中文 | 雜文 | 知乎專欄 | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 視頻教程 | 打賞(Donations) | About
知乎專欄多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者”

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