普通下載方式:
如果你只是要閱讀源代碼,不涉及到編譯安裝修改源代碼,那么可以簡單的通過此方式下載代碼。如果你希望編譯安裝修改源代碼,那么建議通過git來進行源代碼的下載與管理,見下一章:git下載方式。
-
打開網(wǎng)站https://github.com/esnet/iperf
-
然后點擊Code----Local----HTTPS----Download ZIP,則可以將源代碼壓縮包iperf-master.zip下載到本地電腦。
-
用解決壓縮軟件解壓后就可得到源代碼。
git下載方式:
git是當前最流行的源代碼管理工具,在git中下載源代碼一般稱為clone。iperf3開源項目的源代碼是托管在github的。所以在開始下載源代碼前首先你要確保你已經(jīng)正確的安裝git并已經(jīng)正確的配置github相關(guān)帳號(詳見:如何使用git從github.com中clone一個項目的源代碼)。
1. 創(chuàng)建你準備存放iperf3項目源代碼的目錄
如下,我們在當前目錄下創(chuàng)建一個新目錄iperf3,并進入該目錄。
xxx@xxx-pc:~$ mkdir iperf3
xxx@xxx-pc:~$ cd iperf3/
2. 下載源代碼
我們輸入下載代碼的命令后,就可以看到系統(tǒng)開始從github下載iperf的源代碼(源代碼倉庫為: git@github.com:esnet/iperf.git)
xxx@xxx-pc:~/iperf3$ git clone git@github.com:esnet/iperf.git
正克隆到 'iperf'...
The authenticity of host 'github.com (20.205.243.166)' can't be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
remote: Enumerating objects: 9193, done.
remote: Counting objects: 100% (67/67), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 9193 (delta 22), reused 26 (delta 10), pack-reused 9126
接收對象中: 100% (9193/9193), 12.87 MiB | 281.00 KiB/s, 完成.
處理 delta 中: 100% (6533/6533), 完成.
3. 查看下載結(jié)果文章來源:http://www.zghlxwxcb.cn/news/detail-522131.html
xxx@xxx-pc:~/iperf3$ pwd
/home/xxx/iperf3
xxx@xxx-pc:~/iperf3$ ls
iperf
xxx@xxx-pc:~/iperf3$ cd iperf/
xxx@xxx-pc:~/iperf3/iperf$ ls -l
總計 1016
-rw-rw-r-- 1 xxx xxx 375579 2月 24 20:32 aclocal.m4
-rwxrwxr-x 1 xxx xxx 1512 2月 24 20:32 bootstrap.sh
drwxrwxr-x 2 xxx xxx 4096 2月 24 20:32 config
-rwxrwxr-x 1 xxx xxx 510764 2月 24 20:32 configure
-rw-rw-r-- 1 xxx xxx 11130 2月 24 20:32 configure.ac
drwxrwxr-x 2 xxx xxx 4096 2月 24 20:32 contrib
drwxrwxr-x 3 xxx xxx 4096 2月 24 20:32 docs
drwxrwxr-x 2 xxx xxx 4096 2月 24 20:32 examples
-rw-rw-r-- 1 xxx xxx 9498 2月 24 20:32 INSTALL
-rw-rw-r-- 1 xxx xxx 1465 2月 24 20:32 iperf3.spec.in
-rw-rw-r-- 1 xxx xxx 11828 2月 24 20:32 LICENSE
-rw-rw-r-- 1 xxx xxx 23 2月 24 20:32 Makefile.am
-rw-rw-r-- 1 xxx xxx 25880 2月 24 20:32 Makefile.in
-rwxrwxr-x 1 xxx xxx 1161 2月 24 20:32 make_release
-rw-rw-r-- 1 xxx xxx 6508 2月 24 20:32 README.md
-rw-rw-r-- 1 xxx xxx 35393 2月 24 20:32 RELNOTES.md
drwxrwxr-x 2 xxx xxx 4096 2月 24 20:32 src
-rwxrwxr-x 1 xxx xxx 1972 2月 24 20:32 test_commands.sh
此時,我們可以看到代碼與相關(guān)的配置說明文件全部下載到本地電腦/home/xxx/iperf3/iperf目錄下。文章來源地址http://www.zghlxwxcb.cn/news/detail-522131.html
到了這里,關(guān)于一,下載iPerf3最新源代碼的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!