windows 端口占用查询
1.cmd 窗口
2.netstat -ano|findstr “8081” 记下pid xxxx
3.tasklist|findstr “xxxx” 找出对应的程序
linux 端口占用查询
1.根据端口查询进程
netstat -apn|grep 11000
2.根据进程查询程序
ps -ef|grep 819
3.确定是什么程序占用了端口
是 ctpf 的这个程序占用了端口
1.cmd 窗口
2.netstat -ano|findstr “8081” 记下pid xxxx
3.tasklist|findstr “xxxx” 找出对应的程序
1.根据端口查询进程
netstat -apn|grep 11000
2.根据进程查询程序
ps -ef|grep 819
3.确定是什么程序占用了端口
是 ctpf 的这个程序占用了端口