查询端口号占用情况:netstat -ano
查看被占用端口对应的PID:netstat -aon|findstr "49157"
进程占用: tasklist|findstr "2720"
windows修改host文件后立即生效:Win+R->cmd->ipconfig /flushdns
修改host(C:WindowsSystem32driversetc):用记事本打开另存在桌面,然后把后缀名去掉后在粘贴回去。