端口检查
- linux
1 | telnet 192.168.1.102 3306 |
- mac
1 | nc -vz -w 2 192.168.1.104 3306 |
查看端口占用
- Centos7+
1 | lsof -i tcp:80 # 查看80端口占用情况 |
杀掉进程
- Centos
1 | netstat -tpnul # 查看当前所有正在运行的进程 |
1 | telnet 192.168.1.102 3306 |
1 | nc -vz -w 2 192.168.1.104 3306 |
1 | lsof -i tcp:80 # 查看80端口占用情况 |
1 | netstat -tpnul # 查看当前所有正在运行的进程 |
评论