CentOS 安裝BitTorrent Sync詳細步驟

來源:互聯網
上載者:User

標籤:

官網:https://www.getsync.com

這個軟體安裝完後通過網頁瀏覽器設定共用目錄並產生同步Secret,異地的用戶端可以通過這個同步Secret訪問共的目錄,其中有讀寫和唯讀兩種同步方式選擇,以點對點的形式傳送資料,其實可以理解為一種新型的P2P分享方式。

這裡我們可以用這個軟體來同步備份下載盒子上的指定目錄的所有檔案,下面的內容是盒子端的配置過程。

linux系統下的安裝與配置(使用root使用者登入)

1.首先要下載應用程式解壓,根據系統的字長選擇

32位系統

wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_i386.tar.gztar zxvf btsync_i386.tar.gz -C /root

64位系統

wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_x64.tar.gztar zxvf btsync_x64.tar.gz -C /root

2.運行程式輸出配置模板檔案

./btsync --dump-sample-config > btsync.conf

3.編輯上一步輸出的btsync.conf

vi btsync.conf

將下面的<>部分改為你自己的伺服器的資訊。例如“<裝置名稱>”改為“My BT Server”.
連接埠不要設定成80、8112、9091、443之類的,避免與其他軟體應用衝突。

{   "device_name": "<裝置名稱>",  "listening_port" : 0,                       // 0 - randomize port  /* storage_path dir contains auxilliary app files   if no storage_path field: .sync dir created in the directory    where binary is located.   otherwise user-defined directory will be used */  "storage_path" : "/home/root/.sync",// uncomment next line if you want to set location of pid file// "pid_file" : "/var/run/syncapp/syncapp.pid",  "check_for_updates" : true,   "use_upnp" : true,                              // use UPnP for port mapping/* limits in kB/s   0 - no limit*/  "download_limit" : 0,                         "upload_limit" : 0, /* remove "listen" field to disable WebUI   remove "login" and "password" fields to disable credentials check*/  "webui" :  {    "listen" : "<伺服器的IP地址>:<連接埠>",    "login" : "<登陸使用者名稱>",    "password" : "<登陸密碼>"  }/* !!! if you set shared folders in config file WebUI will be DISABLED !!!   shared directories specified in config file   override the folders previously added from WebUI.*//*  ,  "shared_folders" :  [    {//  use --generate-secret in command line to create new secret      "secret" : "MY_SECRET_1",                   // * required field      "dir" : "/home/user/bittorrent/sync_test", // * required field//  use relay server when direct connection fails      "use_relay_server" : true,      "use_tracker" : true,       "use_dht" : false,      "search_lan" : true,//  enable sync trash to store files deleted on remote devices      "use_sync_trash" : true,//  specify hosts to attempt connection without additional search           "known_hosts" :      [        "192.168.1.2:44444",        "myhost.com:6881"      ]    }  ]*/// Advanced preferences can be added to config file.// Info is available in BitTorrent Sync User Guide.}

4.運行BT sync,此時系統會新增一個btsync進程

./btsync --config btsync.conf

如果想關閉BT sync可以使用killall命令關閉

killall btsync

5.把BT sync加入開機啟動

vi /etc/rc.local

exit 0 前一行加入

cd /root./btsync --config btsync.conf

通過本地瀏覽器開啟<伺服器的IP地址>:<連接埠>/gui 登陸以後即可設定同步目錄。
目前用戶端只有英文版的介面,但是設定使用起來比較簡單。做圖文教程很累的,所以不打算製作如何使用的圖文教程了,況且介面真的很簡單,如果還有問題可以在本貼回複提問。


用戶端: 點擊下載


進入官網還有其他包括ARM平台的用戶端可以下載。


使用注意事項:
1.如果是選擇唯讀同步(伺服器->本地),在檔案傳送完畢後如果不想再同步,記得在本地用戶端上刪除同步的目錄,否則容易出現伺服器端刪除了檔案,本地也會自動的刪除該檔案的情況。當然,讀寫同步更是如此。

 

原文來自零度科技:http://www.ldisp.com/a/linux/2013/CentOS-BitTorrent-Sync.shtml

CentOS 安裝BitTorrent Sync詳細步驟

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.