这种情况的原因是:windows自带的系统命令没有加入到环境变量中: 解决方法:将C:\WINDOWS\system32路径 按照下图 添加进环境变量中,重启cmd窗口,问题解决。 netstat -ano