Debian8系統如何使用vi命令修改hosts文件
Debian8系統如何使用vi命令修改hosts文件
debian8系統(tong)如何使(shi)用vi命令修改(gai)hosts文件?本教程以(yi)debian8系統(tong)為例
本配置適用于debian8,9版(ban)本
1.先進入hosts文件(jian)vi /etc/hosts

修改如(ru)上 127.0.0.7 www.wenqin.com(這個網(wang)(wang)站只是(shi)個例子不是(shi)唯一,具體可以看需求網(wang)(wang)站)
保存完后重(zhong)啟(qi)網(wang)絡即可生效(xiao)
/etc/init.d/networking restart

