cmd 命令

I am BlankCat ,welcome to my blog;

技术要点

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
The nexus service is already running with status: RUNNING
端口号被占用
1查看所有端口
netstat -ano
2查看固定端口
C:\>netstat -aon|findstr "8081"
协议 本地地址 外部地址 状态 PID
TCP 127.0.0.1:9050 0.0.0.0:0 LISTENING 2016
3.查看PID对应的进程
C:\>tasklist|findstr "2016"
映像名称 PID 会话名 会话# 内存使用
========================= ======== ================
tor.exe 2016 Console 0 16,064 K
查看taskkill这个用法
C:\Windows\System32\taskkill /?
杀死进程
C:\Windows\System32\taskkill /PID 11052
强制杀死进程
C:\Windows\System32\taskkill /F /PID 11052