栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

我打开的etc内是一个imhosts.sam,而不是hosts.txt,没有找到hosts文件,怎么办?

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

我打开的etc内是一个imhosts.sam,而不是hosts.txt,没有找到hosts文件,怎么办?

在安装c4d 的octane渲染器时,在C:WindowsSystem32driversetc这个文件夹里找不到hosts文件,解决

方法一:先检查该文件是否被隐藏,具体步骤是:打开工具——文件夹选项——取消隐藏文件夹,如下图

 

方法二:

首先在系统桌面空白处右击鼠标选择新建、选择文本文档。

2、如果第一步操作正确那么就可以创建出一个如下图一样的文本文档。

3、将一下内容复制到创建好的文本文档中:

# Copyright (c) 1993-2009 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

# localhost name resolution is handled within DNS itself.

# 127.0.0.1       localhost

# ::1             localhost

#127.0.0.1 gilisoft.com

完成以上粗体字的内容复制后在关闭txt文本的时候选择保存内容。

4、回到系统桌面右击txt文本然后选择重命名,将新建文本文档txt修改为hosts!注意不要有任何多余的空格或者是符号。

5、将已经修改好的文档直接从桌面拖到C:WindowsSystem32driversetc目录中即可解决hosts文件没有了的问题。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/728346.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号