标签:
一
1.安装go
wget https://storage.googleapis.com/golang/go1.5.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
2.编辑/etc/profile
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/usr/local/go/gocode
export PATH=$PATH:$GOPATH/bin
3.建立/usr/local/go/gocode文件夹
mkdir/usr/local/go/gocode
4.apt-get install mercurial
5.go get github.com/chrislusf/seaweedfs/go/weed (此处需要vpn)
6.发布
mkdir /home/elias/FSdir weed master -defaultReplication=010 -mdir=/home/elias/FSdir ip=192.168.33.139 -port=9333 volumeSizeLimitMB=10000 mkdir /home/elias/FSrack1 weed volume -dataCenter=elias_dc1 -rack=elias_rack1 -dir=/home/elias/FSrack1 -index=leveldb -max=7 -ip=192.168.33.139 -port=9334 -mserver=192.168.33.139:9333
二
1. wget https://golang.org/doc/install?download=go1.5.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
2.sudo apt-get install git
3.apt-get install mercurial
4./etc/profile
export PATH=$PATH:/usr/local/go/bin export GOPATH=/usr/local/go/gocode export PATH=$PATH:$GOPATH/bin
5.go get github.com/chrislusf/seaweedfs/go/weed ((此处需要vpn))
三.
一年没用了
新版本支持deb了
https://bintray.com/chrislusf/seaweedfs/seaweedfs
以后还得参照github的文档建立
标签:
原文地址:http://www.cnblogs.com/Mask-er/p/5898865.html