windows 常用命令

查询端口号占用情况:netstat -ano

查看被占用端口对应的PID:netstat -aon|findstr "49157"

进程占用: tasklist|findstr "2720"

windows修改host文件后立即生效:Win+R->cmd->ipconfig /flushdns

修改host(C:\Windows\System32\drivers\etc):用记事本打开另存在桌面,然后把后缀名去掉后在粘贴回去。

posted @ 2020-08-12 21:14  小羽信息  阅读(147)  评论(0编辑  收藏  举报