【トンボDragonfly】クライアント配備

1881 ワード

トンボDragonflyはアリオープンソースP 2 Pベースのスマートファイル配信システムであり、大規模なファイル配信シーンにおける低効率、低成功率、ネットワーク帯域幅の浪費などの問題を解決することを目的としている.
ここclient配置はソース配置1を採用し、ソースコードをダウンロードする
git clone https://github.com/alibaba/Dragonfly.git

2、Dragonflyディレクトリに入る
cd Dragonfly

3、構築スクリプトの実行
 ./build/build.sh client

ここでコンパイルするときにgolintなどの問題が発生しましたconfig_test.go問題、例えばresiter.go,downloader.go,p2pdownloader.goのログパラメータの問題、パラメータの問題はヒントに従って修正すればいい、あるいは簡単な点で直接注釈します.golint問題
   go      src/golang.org/x,      ,      
 x     git clone https://github.com/golang/tools  tools(  golint  tools)
   go get -u -v github.com/golang/lint/golint  golint
   go install github.com/golang/lint/golint 
  go get    golint,   git clone https://github.com/golang/lint 
  go install golang.org/x/lint/golint

config_test.go問題
     gofmt -s -w ./dfget/config/config_test.go    

ログパラメータの問題
                       

以上の問題が解決したら再実行します./build/build.shクライアントの最後のヒント
BUILD: dfdaemon
BUILD: dfget-go
BUILD(dfdaemon&dfget): SUCCESS

4、インストールスクリプトの実行
./build/build.sh install

/opt/dragonfly/df-clientがインストールディレクトリであり、/usr/local/binディレクトリに接続するメッセージが表示されます.
=====================================================================
BUILD(install client): install dfdaemon and dfget...
INSTALL: /opt/dragonfly/df-client
create link /usr/local/bin/dfdaemon to /opt/dragonfly/df-client/dfdaemon
create link /usr/local/bin/dfget to /opt/dragonfly/df-client/dfget-go
delete /tmp/dragonfly/build
BUILD(install client): SUCCESS

5、環境変数の設定
export PATH=$HOME/.dragonfly/df-client:$PATH

行の内容を/etc/profileに書き込み、source/etc/profileを実行して有効にすることができます.
これで、クライアントの導入が完了します.