For faster navigation, this Iframe is preloading the Wikiwand page for
网站镜像.
网站镜像(mirror sites, mirrors;镜像站点,镜像网站)是指对网站内容的拷贝,这类网站通常具有与原站不同的URL,但托管了相同或者是几乎相同的内容。镜像原意是光学里指的物体在镜面中所成之像。引申到电脑网络上,镜像通常用于为相同资讯内容提供不同的源,特别是在下载量大的时候提供了一种可靠的网络连接。[1]制作镜像是一种文件同步的过程,可以以多种网络协议(network protocol)进行传输(如HTTP、FTP等)
镜像的目的
创建镜像的目的通常有以下几个:
- 保存网页资讯,特别是在一个网站面临关站的时候。
- 提高用户在某个地区的下载速度。譬如一个美国网站的中国镜像可以使来自中国的用户直接从这个中国的镜像访问,从而加快了速度。这可以看作是一种全球范围的缓存。
- 对不可用的资讯提供连接途径。避开对于主网站的审查和屏蔽。例如,2002年中国大陆封锁Google搜索时,镜像站点elgooG成为了有效的绕过封锁的途径。
- 保存历史性的数据、资讯,防止丢失。
- 平衡网站的流量负载。例如,一个Linux 的发行版的ISO镜像文件的大量下载可能会导致主站过荷而下线,而镜像站点则可以在多个伺服器分担流量,从而保证站点的持续在线。
- 对因流量激增而下线的站点提供临时的访问。
- 便于不同地区或不同ISP(如中国电信和中国联通的互访问题)的人获得更快的访问速度。
创建镜像站点通常是由于网络带宽限制、封锁或是其他原因,导致无法实现对主站点的正常访问。这时通过将主站点的资讯资源移植转移到相对容易访问的本地伺服器,以提高用户的访问效率。常见于内部网、校园网或是其他有较大存储装置的伺服器。较小的网站有时也以镜像来应对封锁、屏蔽(参见防火长城)。
通过镜像站点,也可以实现多目标多线程的快速下载。例如GetSmart和GetRight正是使用了这种高级的多线程下载技术。
建立镜像的方法
一般而言,网站镜像可以大致分为两种:
一是以突破网络审查为目的(例如维基百科镜像网站)或是待镜像的网站本身是一个不断更新的动态网页,这种情况一般使用反向代理的方式,常见的反向代理工具是nginx。
另一种情况则是通过缓存待镜像的网站(一般是静态页面)数据达到镜像的效果,例如开源软件镜像站,这些网站一般使用rsync进行数据同步。
{{bottomLinkPreText}}
{{bottomLinkText}}
This page is based on a Wikipedia article written by
contributors (read/edit).
Text is available under the
CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.
{{current.index+1}} of {{items.length}}
Thanks for reporting this video!
This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:
An extension you use may be preventing Wikiwand articles from loading properly.
If you're using HTTPS Everywhere or you're unable to access any article on Wikiwand, please consider switching to HTTPS (https://www.wikiwand.com).
An extension you use may be preventing Wikiwand articles from loading properly.
If you are using an Ad-Blocker, it might have mistakenly blocked our content.
You will need to temporarily disable your Ad-blocker to view this page.
✕
This article was just edited, click to reload
Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}
Follow Us
Don't forget to rate us
Oh no, there's been an error
Please help us solve this error by emailing us at
support@wikiwand.com
Let us know what you've done that caused this error, what browser you're using, and whether you have any special extensions/add-ons installed.
Thank you!