Archive for the ‘建站手记’ Category
网站大提速:CloudFlare 免费 CDN 缓存加速服务
在好友 bisn 的分享下,试了下 cloudflare.com 的免费 CDN 加速技术,貌似自然醒博客访问速度真的变快了。很简单,注册之后,共4步骤,它会自动分析你的 DNS 及线路节点,最后只要修改你的 DNS 为 它的 dns 就 OK。这里就不赘述了。cloudflare 主要缓存 css,js,jpg等静态文件,具体文件后缀列表见文末。
下面是设置前后,ping 及 tracert 测试:
Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=436ms TTL=40
Reply from 67.228.229.187: bytes=32 time=431ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Reply from 67.228.229.187: bytes=32 time=442ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 431ms, Maximum = 442ms, Average = 435ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=414ms TTL=40
Reply from 67.228.229.187: bytes=32 time=435ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Reply from 67.228.229.187: bytes=32 time=420ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 414ms, Maximum = 435ms, Average = 425ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=431ms TTL=40
Reply from 67.228.229.187: bytes=32 time=430ms TTL=40
Reply from 67.228.229.187: bytes=32 time=422ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 422ms, Maximum = 433ms, Average = 429ms
C:\Documents and Settings\Administrator>tracert www.dreamfreeblog.com
Tracing route to dreamfreeblog.com [67.228.229.187]
over a maximum of 30 hops:
1 1 ms <1 ms <1 ms 219.228.116.254
2 <1 ms <1 ms <1 ms 10.19.59.253
3 <1 ms <1 ms <1 ms 10.3.2.41
4 <1 ms <1 ms <1 ms 10.3.0.10
5 1 ms 1 ms 1 ms 10.3.0.50
6 1 ms 1 ms 1 ms 202.120.201.198
7 1 ms 1 ms 1 ms 202.112.6.89
8 2 ms * 1 ms sh0.cernet.net [202.112.53.89]
9 7 ms 10 ms 7 ms 202.112.36.253
10 29 ms 46 ms 30 ms bj-11-p11-1.cernet.net [202.112.46.5]
11 29 ms * 29 ms 202.112.61.158
12 29 ms 29 ms * 202.112.61.122
13 234 ms 304 ms 228 ms so-0-0-2-0.gw4.hkg3.asianetcom.net [202.147.17.1
3]
14 258 ms 246 ms 242 ms ge-2-0-0-0.cr4.hkg3.asianetcom.net [203.192.134.
69]
15 * 229 ms 225 ms te0-2-2-0.wr1.hkg0.asianetcom.net [61.14.157.141
]
16 276 ms 282 ms 284 ms te0-2-0-0.wr1.osa0.asianetcom.net [61.14.157.70]
17 399 ms 394 ms * gi6-0-0.gw1.sjc1.asianetcom.net [61.14.157.98]
18 413 ms 415 ms 415 ms te1-7.bbr01.eq01.sjc01.networklayer.com [206.223
.116.176]
19 415 ms 410 ms 401 ms ae0.bbr02.wb01.sea02.networklayer.com [173.192.1
8.146]
20 416 ms 422 ms 428 ms ae1.dar01.sr01.sea01.networklayer.com [173.192.1
8.143]
21 418 ms 414 ms * po1.fcr01.sr01.sea01.networklayer.com [67.228.11
8.134]
22 428 ms 429 ms 414 ms 67.228.229.187-static.reverse.softlayer.com [67.
228.229.187]
Trace complete.
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Request timed out.
Reply from 67.228.229.187: bytes=32 time=427ms TTL=40
Reply from 67.228.229.187: bytes=32 time=436ms TTL=40
Reply from 67.228.229.187: bytes=32 time=426ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
Minimum = 426ms, Maximum = 436ms, Average = 429ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [67.228.229.187] with 32 bytes of data:
Reply from 67.228.229.187: bytes=32 time=427ms TTL=40
Reply from 67.228.229.187: bytes=32 time=411ms TTL=40
Reply from 67.228.229.187: bytes=32 time=432ms TTL=40
Reply from 67.228.229.187: bytes=32 time=433ms TTL=40
Ping statistics for 67.228.229.187:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 411ms, Maximum = 433ms, Average = 425ms
cloudflare cdn 加速之后,3次 ping 平均响应时间只要 200 左右了
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [173.245.61.114] with 32 bytes of data:
Reply from 173.245.61.114: bytes=32 time=223ms TTL=48
Reply from 173.245.61.114: bytes=32 time=218ms TTL=48
Reply from 173.245.61.114: bytes=32 time=244ms TTL=48
Reply from 173.245.61.114: bytes=32 time=228ms TTL=48
Ping statistics for 173.245.61.114:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 218ms, Maximum = 244ms, Average = 228ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [199.27.135.40] with 32 bytes of data:
Reply from 199.27.135.40: bytes=32 time=179ms TTL=47
Reply from 199.27.135.40: bytes=32 time=178ms TTL=47
Reply from 199.27.135.40: bytes=32 time=183ms TTL=47
Reply from 199.27.135.40: bytes=32 time=177ms TTL=47
Ping statistics for 199.27.135.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 177ms, Maximum = 183ms, Average = 179ms
C:\Documents and Settings\Administrator>ping www.dreamfreeblog.com
Pinging dreamfreeblog.com [199.27.135.40] with 32 bytes of data:
Reply from 199.27.135.40: bytes=32 time=196ms TTL=47
Reply from 199.27.135.40: bytes=32 time=215ms TTL=47
Reply from 199.27.135.40: bytes=32 time=198ms TTL=47
Reply from 199.27.135.40: bytes=32 time=187ms TTL=47
Ping statistics for 199.27.135.40:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 187ms, Maximum = 215ms, Average = 199ms
tracert 之后可以看到,到 hkg4.asianetcom.net 之后,直接 cloudflare 了
C:\Documents and Settings\Administrator>tracert www.dreamfreeblog.com
Tracing route to dreamfreeblog.com [199.27.135.40]
over a maximum of 30 hops:
1 1 ms 1 ms <1 ms 219.228.116.254
2 <1 ms <1 ms <1 ms 10.19.59.253
3 <1 ms <1 ms <1 ms 10.3.2.41
4 <1 ms <1 ms <1 ms 10.3.0.10
5 <1 ms <1 ms <1 ms 10.3.0.50
6 3 ms 1 ms 1 ms 202.120.201.198
7 2 ms 1 ms 1 ms 202.112.6.89
8 15 ms 1 ms 1 ms 202.112.53.137
9 7 ms 7 ms 10 ms 202.112.36.37
10 24 ms 24 ms 24 ms 202.112.62.57
11 29 ms 29 ms 29 ms 202.112.61.158
12 29 ms 29 ms 29 ms 202.112.61.14
13 159 ms 158 ms 157 ms so-0-0-2-0.gw4.hkg3.asianetcom.net [202.147.17.1
3]
14 * 152 ms 155 ms gi3-0-0.cr3.hkg3.asianetcom.net [203.192.134.65]
15 168 ms 170 ms 174 ms te2-2.gw1.hkg4.asianetcom.net [202.147.16.202]
16 164 ms 163 ms 177 ms CDF-0002.gw1.hkg4.asianetcom.net [202.147.17.182
]
17 178 ms 173 ms 172 ms cf-199-27-135-40.cloudflare.com [199.27.135.40]
Trace complete.
cloudflare 主要缓存下列静态文件:
css
js
jpg
jpeg
gif
ico
png
bmp
pict
csv
doc
pdf
pls
ppt
tif
tiff
eps
swf
midi
mid
ttf
eot
woff
svg
svgz
webp
热泪庆祝自然醒启用全新拼音域名 ziranxing.com
本博客 睡到自然醒blog 最初建立于2008年4月,相信能记住原来的域名 dreamfreeblog.com 的童鞋绝对是好孩纸,现在热泪庆祝自然醒启用全新对应拼音域名:ziranxing.com 很容易记住吧!
业余域名投资以来,收购了不少英文域名,这次的中文拼音三拼域名(抢注购回)算是自然醒blog建立以来最值得高兴和纪念的哇。
暂时没跳转,单独的页面放在那。
睡到自然醒也有Google Sitelinks啦
这和人们喜欢搜索自己的名字一样,博主们也喜欢搜索自己博客的名字。记得博客建立之初,搜“睡到自然醒”完全木有偶博客的影子,后来有了PR,就有了首页第一排名权重,再后来…睡到自然醒blog也有传说中的 Google Sitelinks(网站链接)啦。
博客两岁了,生日快乐!
下午去植物园,很开心,晚上回来打开博客,看到老朋友 Bisn 在那篇当时博客一周岁生日的留言,提醒说今天博客两岁了,看到那条留言,眼前一亮的感觉,而且 Bisn 童鞋当时 08 年 4 月初我博客还在电脑上测试期间就目睹了它的诞生。
的确,睡到自然醒blog两岁了(2008.04.29~2010.04.29)!
iDream 微博客子频道 – P2 微博客主题风格!
给睡到自然醒博客添加了一个子频道- iDream (Dream 取自域名,之所以前面在加个 i,嘿嘿,看了这儿你就明白了,感觉大写单词前面有个小写的 i 超帅啊),作为心情随笔日志记录的地方,发现有的时候在主博客上写一些不相干的唠叨有点干扰大家的 GR 阅读,有时想写篇真正意义上的日志也有所顾虑,就像上 Twitter,你不写点实实在在的文字记录在那儿,心里的一些灵感和感受不及时说出来(或发泄出来),总觉得心理不舒服,憋得慌。
那 iDream 就作为以后的后花园吧,随便折腾,嘿嘿。iDream 同样也会在侧边栏 widget 提供 rss 输出,以后逛到这儿可以点进去看看。大家也肯定发现了现在的 iDream 采用的是著名的 P2 微博客主题,以后也会顺便将这个微博客集成一些网络摘抄、RSS聚合同步的功能,实现我以前的一些想法:1,2。
大家对 P2 感兴趣的也可以去玩玩,甚至大胆的将你现在的主博客也换成 P2 主题!当然你也可以看看我以前介绍的另一款 WordPress 微博客主题。
欢迎围观:iDream :)
JustHost主机购买成功! 附JustHost购买图文教程!
成功购买JustHost主机,将博客搬到 JustHost 美国主机,鼓掌!
上次博客逃难似地从国内搬家到 Godaddy 主机,面临的主要问题是 FTP 速度慢。现在的问题是学校封闭了 2081、2082端口,以至于我登陆 cpanel 还要上代理,囧啊。
博客搬家其它到没问题,现在搬家对我来说就是背着打包数据到处跑,虽然每次搬家都会出现小小的问题,这次也不例外,但主要问题解决了,现在博客在这个新 IP 下能正常打开了。又是凌晨了…. 睡啦睡啦…
嘿嘿,大家看看速度如何,是不是稍微快了点,或者嗖嗖快了很多啊,给点我安慰啊
其实这个主机速度是很快的,我在后台明显能感觉出来,只是前台我这个主题太庞大了,很多设置会调用很多次数据库,看一下页脚 queries 数,再看看加载时间,你应该有一个感性认识了。再观察一段时间,这个主题…也没怎么去优化,找时间再优化下,如果速度还没达到我想要的,想换主题了…
这次博客从 Godaddy 主机搬家到 http://www.justhost.com 啦。感兴趣的童鞋可以去那看看。绝对物超所值啊,下次再详细谈谈这个主机,有必要的话写下 JustHost 优惠码信息及JustHost购买教程。
JustHost 优惠码可以看这里: JustHost优惠 – 2.95美元/月
JustHost 购买可以参考这里:JustHost 主机购买教程
博客一些统计数据:博客500篇日志了 ⊙o⊙
写博客写了一年半不到,200 天还有 17 天,博客日志数已经先达到 500 篇了,看来我是一个勤奋的人。这说明即便你天天睡到自然醒,但 睡到自然醒blog 并非博如其名,还是很高产的呐。其实博客早期为了充实博客内容,转载了很多文章充数。
简单总结一下博客的数据,以此日志为记,华丽分割一下。
博客数据

逛过一些人的博客,有的博客会在首页挂上 Akismet 的 widget,发现一个规律,判断一个博客的外链建设情况或流行度一个最直观的反映就是它博客的垃圾留言数。哈哈。目前博客的 spam 也快上万啦,看着这数据也贼开心啊。

