linux ubuntu 设置hosts的方法

编辑hosts文件,插入hosts

sudo vim /etc/hosts

保存后,执行以下命令,使其立即生效

sudo /etc/init.d/networking restart

posted @ 2022-12-28 11:36  生命不息bug不止  阅读(508)  评论(0编辑  收藏  举报