1、查询端口
查询所有端口
netstat -ano
查询指定端口
netstat -ano | findstr 端口号
2、结束端口进程
taskkill /pid 进程号 -f
3、删除服务
sc delete 服务名称
4、创建服务
sc create 服务名称 binPath="路径" DisplayName="显示名称" start= auto
1、查询端口
查询所有端口
netstat -ano
查询指定端口
netstat -ano | findstr 端口号
2、结束端口进程
taskkill /pid 进程号 -f
3、删除服务
sc delete 服务名称
4、创建服务
sc create 服务名称 binPath="路径" DisplayName="显示名称" start= auto