alibaba / kt-connect

A toolkit for Integrating with your kubernetes dev environment more efficiently
https://alibaba.github.io/kt-connect/#/
GNU General Public License v3.0
1.54k stars 231 forks source link

windows10环境下安装0.3.7版本使用connect命令出错,求解答 #401

Open 7Achilles opened 1 year ago

7Achilles commented 1 year ago

Describe the bug windows10下以管理员模式打开cmd,执行ktctl connect失败

Log please add -d to debug log

8:39AM WRN Failed to dump hosts file 8:39AM DBG open C:\Windows\System32\drivers\etc\hosts: Access is denied. 8:39AM ERR Exit: open C:\Windows\System32\drivers\etc\hosts: Access is denied.

Environment (please complete the following information):

Additional context 本地hosts文件已经授过读写权限,cmd也是以管理员方式打开的,电脑也重启过了,但依旧爆该问题,求救!

xiaoxiaoma111 commented 4 months ago

现在解决了吗

shuchun commented 2 weeks ago

使用管理员打开命令行,执行如下命令:attrib -r -a -s -h C:\Windows\System32\drivers\etc\hosts