因爲國內的CDN加速需要備案
但是Freenom.com的域名工信部不支持,
無法備案->無法CDN加速.
怎麼辦呢?花錢買域名嗎?想讓我花錢是絕對不可能的.
我們使用Netlify,界面雖然是英文的,但是非常友好 ,哪怕你不看文字,憑感覺操作都行.
讓我們放棄DNSpod,去freenom.com中填入:
- dns1.p03.nsone.net
- dns2.p03.nsone.net
- dns3.p03.nsone.net
- dns4.p03.nsone.net
然後去點擊上方地一個圖片Done
終端檢測效果:
(Python3.6) appleyuchi@ubuntu19:GIL鎖$ ping GaussNoise.github.io
PING GaussNoise.github.io (185.199.108.153) 56(84) bytes of data.
64 bytes from 185.199.108.153 (185.199.108.153): icmp_seq=1 ttl=48 time=186 ms
64 bytes from 185.199.108.153 (185.199.108.153): icmp_seq=2 ttl=48 time=194 ms
64 bytes from 185.199.108.153 (185.199.108.153): icmp_seq=3 ttl=48 time=203 ms
(Python3.6) appleyuchi@ubuntu19:GIL鎖$ ping www.yuchi.ml
PING gaussnoise.github.io (185.199.109.153) 56(84) bytes of data.
64 bytes from 185.199.109.153 (185.199.109.153): icmp_seq=1 ttl=48 time=198 ms
64 bytes from 185.199.109.153 (185.199.109.153): icmp_seq=2 ttl=48 time=191 ms
64 bytes from 185.199.109.153 (185.199.109.153): icmp_seq=3 ttl=48 time=190 ms
#---------------------------------------------------------------------------------------------------------------
我們來ping下沒有cdn的github pages:
$ ping appleyuchi.github.io
PING appleyuchi.github.io (185.199.111.153) 56(84) bytes of data.
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=2 ttl=48 time=222 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=3 ttl=48 time=237 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=4 ttl=48 time=251 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=5 ttl=48 time=237 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=6 ttl=48 time=223 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=7 ttl=48 time=230 ms
64 bytes from 185.199.111.153 (185.199.111.153): icmp_seq=8 ttl=48 time=246 ms
大概加速了30ms~40ms左右
過了一會兒繼續ping
(Python3.6) appleyuchi@ubuntu19:~$ ping www.yuchi.ml
PING GaussNoise.github.io (185.199.110.153) 56(84) bytes of data.
64 bytes from 185.199.110.153 (185.199.110.153): icmp_seq=2 ttl=48 time=242 ms
64 bytes from 185.199.110.153 (185.199.110.153): icmp_seq=5 ttl=48 time=266 ms
所以網上說的免費的CDN不穩定,是有道理的,這玩意兒充其量只能是你搭建蹄子的時候被封的時候用來解封的工具.
想要加速?省省吧...
所以沒事兒不要折騰免費的CDN了
Reference: