1. 程式人生 > >京東商城網站伺服器分析

京東商城網站伺服器分析

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow

也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!

               

京東商城是專業的數碼網上購物商城,主要產品包括數碼、家電、手機、電腦配件、網路產品等數萬種商品。

京東商城是我比較喜歡的一個網站,UI/UE方面做得非常棒,從他們網站的細節就可以看出來,雖然我一直沒有網購的經歷,但是以後如果要網購,而同時京東上面有我想買的商品,我可能會考慮在京東商城買東西。

出於對京東商城的喜歡,因此簡單的分析了一下他們的伺服器情況

從X-Cache: MISS from www.360buy.com可以看出,京東的主站應該是採用了Squid反向代理
C:/Users/caihuafeng>curl -I www.360buy.com
HTTP/1.0 200 OK
Cache-Control: public, max-age=600
Content-Type: text/html; charset=gb2312
Last-Modified: Wed, 05 Aug 2009 10:20:41 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Date: Wed, 05 Aug 2009 10:20:41 GMT

X-Cache: MISS from www.360buy.com
Content-Length: 83486
X-Cache: MISS from www.360buy.com
Connection: close

京東的主站有兩臺web伺服器
C:/Users/caihuafeng>nslookup www.360buy.com
伺服器:  ns.crcbj.com
Address:  61.233.9.9

非權威應答:
名稱:    www.360buy.com
Addresses:  211.151.68.196
          60.29.252.21

用nmap檢測出伺服器211.151.68.196用的是FreeBSD的作業系統,但是用curl -I抓取的http header裡面有ASP.NET的字樣,一般ASP.NET是不能執行在FreeBSD作業系統下的,難道ASP.NET真的可以執行在FreeBSD或其它的非windows作業系統嗎?Google了一下,終於找到了答案,通過一個叫做mono的軟體就可以實現,這真的是一個重大的發現,以前知道京東是用ASP.NET開發的,沒有想到卻是執行在FreeBSD作業系統下面的。
You need to use an open source implementation of the Microsoft .NET architecture called mono.

Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix. Sponsored by Novell, the Mono open source project has an active and enthusiastic contributing community and is positioned to become the leading choice for development of Linux applications.

Mono can be run on

    * Linux
    * FreeBSD
    * UNIX
    * Mac OS X
    * Solaris
    * Windows operating systems
Via:
http://www.cyberciti.biz/faq/how-to-use-aspnet-on-linux-solaris-freebsd/

檢測京東主站的作業系統,連伺服器運行了16.999 days都統計出來了,說明京東的伺服器在16.999天以前曾經重啟過
[[email protected]_Test_Server ~]# nmap -O www.360buy.com

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-08-06 00:10 CST
Warning: Hostname www.360buy.com resolves to 2 IPs. Using 211.151.68.196.
Warning:  OS detection will be MUCH less reliable because we did not find at least 1 open and 1 closed TCP port
Interesting ports on 211.151.68.196:
Not shown: 1676 filtered ports
PORT     STATE SERVICE
22/tcp   open  ssh
53/tcp   open  domain(打開了53埠,主要是用於DNS服務)
80/tcp   open  http
8888/tcp open  sun-answerbook
Device type: general purpose
Running: FreeBSD 4.X
OS details: FreeBSD 4.5-RELEASE (or -STABLE) through 4.6-RC (x86)
Uptime 16.999 days (since Mon Jul 20 00:14:45 2009)

Nmap finished: 1 IP address (1 host up) scanned in 121.576 seconds

京東商城的搜尋用的有可能是lucene,因為抓取它們網站的header顯示Apache-coyote/1.1的字樣
C:/Users/caihuafeng>curl -I search.360buy.com/Search
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=006837CC3C733EB2686B2D142BB51170; Path=/
Content-Type: text/html;charset=GB2312
Content-Length: 16998
Date: Wed, 05 Aug 2009 10:24:13 GMT
Connection: close
Set-Cookie: BIGipServerbeta_360buy_soxue=2383063232.20480.0000; expires=Wed, 05-
Aug-2009 10:00:08 GMT; path=/

           

給我老師的人工智慧教程打call!http://blog.csdn.net/jiangjunshow

這裡寫圖片描述