camtasia studio 抠像:hosts文件丢失

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/29 05:25:53
怎么恢复hosts文件?恢复成功利马给分!

可以从其他电脑上拷贝该文件到相应的路径下。然后按照自己需要设定的域名用示例为蓝本设置好,保存就行。注意要进行该路径下的粘贴文件及修改文件都需要使用管理员权限,所以请使用管理员账户登录电脑。

Hosts是一个没有扩展名的系统文件,可以用记事本等工具打开,其作用就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,系统会立即打开对应网页,如果没有找到,则系统会再将网址提交DNS域名解析服务器进行IP地址的解析。
以下为hosts文件在不同系统中所处的目录
Windows Vista/7/8/8.1: %windir%\system32\drivers\etc\
Windows XP/Millennium:%windir%\
Windows 95/98/Me:%WinDir%\
Linux及其他类Unix操作系统:/etc
Mac OS 9及更早的系统:System Folder: Preferences或System folder(文件格式可能与Windows和Linux所对应的文件不同)
Mac OS X:/private/etc(使用BSD风格的hosts文件)
OS/2及eComStation:"bootdrive":\mptn\etc\
Android:/system/etc/hosts
Symbian第1/2版手机:C:\system\data\hosts
Symbian第3版手机:C:\private\10000882\hosts,只能使用兼容AllFiles的文件浏览器访问,大部分都不行。
iPhone OS:/etc
iPad OS:/private/etc
webOS:/etc

开记事本复制文件内容下的所有东西。
保存到以下两个位置,后把hosts.txt后的.TXT去掉应该就可以了
c:\windows\system32
c:\windows\system32\drivers\etc

文件内容
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

检修hosts文件。

1)打开windows的记事本

2)用菜单:

文件--》打开...

3)在打开文件对话框里:

对于win 98,在输入文件名(也可以复制/粘贴):
%SystemRoot%\hosts

对于win 2000/xp,输入文件名(也可以复制/粘贴):
%SystemRoot%\system32\drivers\etc\hosts

再点[确定]按钮。

删除127.0.0.1这一行以外的所有内容。

关闭“记事本”,并在出现提示时保存更改。

hosts文件丢失的话,只能找别人的机器备份一份拿来用,这个文件应该在C:\Winnt\System32\Drivers\Etc下,随后用记事本打开hosts,手动修改里面的设置即可

进入ghost界面,这个会吧?
(没有光驱?那就装”矮人DOS工具4.2”
里面也有GHOST,你手动启动就可以了)
选择:Local→Partition→From Image
对话框里面找到你的.gho文件
如果你的.GHO文件丢失的话,网上比较好的是”番茄花园”的.GHO文件