CentOS修改hosts文件及生效命令 修改hosts文件 vim /etc/hosts 如: 127.0.0.1 http://www.baidu.com 修改完成后生效命令 /etc/init.d/network restart 赞赏码 非学,无以致疑;非问,无以广识