在ubuntu下安裝和使用Tsunami udp

2021-07-31 14:02:53 字數 1255 閱讀 7871

1. 安裝gcc

sudo apt-get install gcc

2. 安裝git

sudo apt-get install git

3. 安裝automake

sudo apt-get install automake autoconf

git clone git:

5. cd到該資料夾後,編譯:

sudo ./recompile.sh

6. sudo make install

7. 需要注意的地方:recompile.sh隨後用sudo make install來安裝。(在有些系統上 build 可能失敗/出錯,原因是automake失敗了。需要修改recompile.sh把automake變成 automake --add-missing)

8. 在存有資料的機器上啟動file transfer server。下列命令表示在port 46224上啟動tsunamid server,傳輸file1和file2。secret 指定的是連線口令:

sudo tsunamid --port 46224 --secret *** file1 file2

1.       在需要獲取資料的機器上啟動tsunami client:

啟動client:tsunami

設定client udp port:set u***ort 46224

2.       需要注意的是,在file transfer server機器的安全組上需要開啟對應tcp和udp的埠,而在tsunami client機器的安全組上需要開啟對應udp的埠。

3.       另外,在資料傳輸的過程中,tsunami-udp會使用heartbeat檢查連線,預設為15秒,超時會disconnect。因此,若傳輸較大檔案,或者類似於ec2 t2例項型別網路效能會隨著credit而變化,則有必要延長相應的heartbeat超時時間。你可在啟動file transfer server中用引數「--hbtimeout」指定heartbeat超時的秒數,如下例子所示:

sudo tsunamid --port 46224 --secret *** --hbtimeout 3600 file1 file2

一般在server和client端用乙個screen來保留傳輸的進場,ctrl+a+d後detached等待傳輸完成,以防由於ssh斷開導致當前shell程序中斷。傳輸過程中用ls -alh來觀察client端的目標檔案大小不斷增長,而且你可以用ifstat(sudo apt-get install ifstat )來監控當前傳輸的網速。

SIPP在Ubuntu下安裝使用

第一步 安裝sipp之前需要預安裝的一些檔案 apt get install make apt get install gcc apt get install bison flex apt get install build essential apt get install libncurses ...

在ubuntu下安裝使用wireshark

wireshark是乙個網路流量分析軟體,通常在爬蟲是會使用。進入ubuntu版wireshark官網,裡面有詳細的安裝過程 首先,官網會告訴你 from ubuntu 16.04 you also need to enable universe repository,see 如果是ubuntu16...

ubuntu下tftp安裝和使用

這樣tftp伺服器就啟動了,下面可以做乙個測試 4.cd tftpboot touch test 建立乙個檔案 5.cd home usrname 登入另乙個目錄 6.tftp 192.168.0.59 換成自己的ip get tftpboot test 如果能夠得到檔案,那麼就成功了。ps 不要忘...