net stop "服务名" 停止服务
net start "服务名" 开启服务
ipconfig // ip配置
netstat -ano // 端口占用情况
-a 显示所有连接和侦听端口
-n 以数字形式显示地址和段偶好
-o显示拥有的每个连接关联的进程ID
netstat -aon|findstr "端口号" // 查询指定端口占用情况
tasklist|findstr "pid" // 查看PID对应的进程
mongod --install 安装windows服务 mongod --remove 移除windows服务 mongod --reinstall 重新安装windows服务