360安全衛士的防護機制預設會阻擋hosts檔案被修改,導致開發者或進階用戶無法編輯hosts。解決方法是將編輯器或hosts檔案加入「信任清單」。
notepad.exe
notepad++.exe
vim.exe
C:\Windows\System32\drivers\etc\hosts
加入信任後,360不再攔截hosts修改,開發調試更順暢!