⚡yangz ❯❯ nmap -sS MD
Starting Nmap 7.93 ( https://nmap.org ) at 2023-01-26 19:23 中国标准时间
Nmap scan report for MD
Host is up (0.045s latency).
Not shown: 996 filtered tcp ports (no-response)PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
443/tcp closed https
3306/tcp closed mysql
结果说明3306的端口是放行的,但服务端未能正常工作。
2.2 检查端口
在ECS上检查所有端口的使用情况:
1
2
3
4
root@minedl:~# netstat -lntp
Active Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 00 127.0.0.1:3306 0.0.0.0:* LISTEN 24735/mysqld