window 命令行

清屏

  cls

启动服务

  net start 服务名(nexus、mysql

关闭服务

  net stop 服务名(nexus、mysql)

删除服务

  sc delete 服务名

  如果服务名有空格,加引号,如 sc delete "nexus "

查看当前计算机开启的端口

netstat -an 

原文地址:https://www.cnblogs.com/Mike_Chang/p/9374702.html