国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術文章
文章詳情頁

Linux如何修改hosts文件并刷新DNS生效hosts文件

瀏覽:10日期:2023-09-11 20:46:57
目錄Linux修改hosts文件并刷新DNS生效hosts文件mac修改hosts刷新DNS使其立即生效修改 hosts刷新DNS總結Linux修改hosts文件并刷新DNS生效hosts文件

修改linux中hosts文件,加速github訪問下載:

1、修改hosts文件:/etc/hosts

[root@superroot mydock03]# vim /etc/hosts127.0.0.1 ? localhost localhost.localdomain localhost4 localhost4.localdomain4::1 ? ? ? ? localhost localhost.localdomain localhost6 localhost6.localdomain6# github140.82.113.3?? ?http://github.com185.199.108.153?? ?http://assets-cdn.github.com199.232.69.194?? ?http://github.global.ssl.fastly.net

2、刷新DNS緩存

[root@superroot mydock03]# /etc/init.d/network restartRestarting network (via systemctl): ? ? ? ? ? ? ? ? ? ? ? ?[ ?OK ?]mac修改hosts刷新DNS使其立即生效修改 hostssudo vi /etc/hosts刷新DNSsudo killall -HUP mDNSResponder

我的mac 系統版本 12.2.1

各版本命令僅供參考

Mac OS X 10.7 – 10.8:sudo killall -HUP mDNSResponderMac OS X 10.5 – 10.6:dscacheutil -flushcacheMac OS X 10.4:lookupd -flushcache總結

以上為個人經驗,希望能給大家一個參考,也希望大家多多支持好吧啦網。

標簽: Linux
主站蜘蛛池模板: 鞍山市| 加查县| 久治县| 青田县| 隆林| 蚌埠市| 呼和浩特市| 嘉祥县| 晋宁县| 台山市| 中阳县| 洛川县| 孟村| 宿州市| 乌海市| 大兴区| 怀集县| 岫岩| 苗栗县| 辰溪县| 茂名市| 扎兰屯市| 衡东县| 绍兴市| 文化| 万山特区| 平利县| 沐川县| 和平区| 平定县| 石林| 阿尔山市| 拉萨市| 盐山县| 兖州市| 平原县| 天长市| 岳西县| 左权县| 黔江区| 喜德县|