Code Monkey home page Code Monkey logo

hosts's Introduction

doodle

English version

使用本项目之前,请先阅读此 README 及下方的许可协议

如果在使用过程中遇到问题 如无法连接xxx等 请参阅: 常见问题解答

使用镜像地址获取 hosts

聊天室 hosts 格式检测
chat-metadata travis-metadata

更新 hosts

  • 下面介绍的操作均可能覆盖现有 hosts ,进行操作前请先确认是否需要备份。

  • 推荐使用本项目的 Host Tools 来自动化 备份/配置 工作。

  • 若更新 hosts 未立即生效,请重置网络:

    • 在系统设置内开关网络
    • 启用禁用飞行模式
    • 重启系统

Windows

用文本编辑器(如 Notepad++)打开文件:

C:\Windows\System32\drivers\etc\hosts

hosts 全部内容复制到上述文件内并保存

注意:如果遇到无法保存,请右键文件hosts并找到“属性” -> “安全”,然后选择你登陆的用户名,最后点击编辑,勾选“写入”即可。

Linux 和 Mac OS

hosts 全部内容复制到/etc/hosts中并保存。

或开启终端(快捷键为Ctrl + Alt + T)输入命令:

wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -qO /tmp/hosts && sudo sh -c 'cat /tmp/hosts > /etc/hosts'

Android 和 iOS

hosts 全部内容复制到 /etc/hosts中并保存。

更多

获取更多信息,请访问 Wiki 页面 。如有问题,请开 Issue 反馈。

License

  • 本项目的所有代码除另有说明外,均按照 MIT License 发布。
  • 本项目的hosts,README.MD,wiki等资源基于CC BY-NC-SA 4.0 这意味着你可以拷贝、并再发行本项目的内容,但是你将必须同样提供原作者信息以及协议声明。同时你也不能将本项目用于商业用途, 按照我们狭义的理解(增加附属条款),凡是任何盈利的活动皆属于商业用途
  • 请在遵守当地相关法律法规的前提下使用本项目。

img-source-from-https://github.com/docker/dockercraft

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.