ARTICLE DETAIL

资讯详情

深耕网站视觉设计与运营推广的一线实战洞察。

ubuntu使用github

ubuntu使用github 解决方案:1.终端输入ifconfig -a |grep inet找到自己的IP地址(inet后面的内容)2.通过站长工具(https://tool.chinaz.com/)查询到可用的github的dns3.打开终端命令行输入命令sudo gedit /etc/hosts即打开hosts文件修改里面的内容如下127.0.0.1 localhost127.0.1.1 mylinux #这是用户名不同的电脑显示不一样在此处后面添加:xxx.xxx.xxx.xxx github.com git(x是步骤1找到的自己的IP地址)yyy.yyy.yyy.yyy github.com(y是步骤2找到的github的dns)再在后面添加如下代码:github.com192.30.253.112 github.com192.30.253.119 gist.github.com151.101.100.133 assets-cdn.github.com151.101.100.133 raw.githubusercontent.com151.101.100.133 gist.githubusercontent.com151.101.100.133 cloud.githubusercontent.com151.101.100.133 camo.githubusercontent.com151.101.100.133 avatars0.githubusercontent.com151.101.100.133 avatars1.githubusercontent.com151.101.100.133 avatars2.githubusercontent.com151.101.100.133 avatars3.githubusercontent.com151.101.100.133 avatars4.githubusercontent.com151.101.100.133 avatars5.githubusercontent.com151.101.100.133 avatars6.githubusercontent.com151.101.100.133 avatars7.githubusercontent.com151.101.100.133 avatars8.githubusercontent.com185.199.108.153 assets-cdn.github.com185.199.109.153 assets-cdn.github.com185.199.110.153 assets-cdn.github.com185.199.111.153 assets-cdn.github.com151.101.113.194 github.global.ssl.fastly.netThe following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters参考博客:https://blog.51cto.com/u_15242250/2856080https://blog.csdn.net/voshv/article/details/127120400
返回列表