tak
netstat -ant | grep 3306
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
ps -ef | grep -i mysql
mysql 1613 1 0 02:03 ? 00:02:15 /usr/sbin/mysqld
root 13590 13524 0 13:09 pts/0 00:00:00 grep --color=auto -i mysql
nmap -n -Pn -p 3306
Starting Nmap 6.40 (
http://nmap.org ) at 2022-11-27 13:10 GMT
Nmap scan report for
Host is up.
PORT STATE SERVICE
3306/tcp filtered mysql
public (active)
target: default
icmp-block-inversion: no
interfaces: eno1
sources:
services: dhcpv6-client ftp http https mysql openvpn ssh
ports: 21/tcp 40000/tcp 3306/tcp 55555/tcp
protocols:
masquerade: yes
forward-ports:
source-ports:
icmp-blocks:
rich rules:
netstat -tlnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1613/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1397/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1396/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1842/master
tcp6 0 0 :::80 :::* LISTEN 1418/httpd
tcp6 0 0 :::21 :::* LISTEN 1410/vsftpd
tcp6 0 0 :::22 :::* LISTEN 1397/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1396/cupsd
tcp6 0 0 ::1:25 :::* LISTEN 1842/master
tcp6 0 0 :::443 :::* LISTEN 1418/httpd
tcp6 0 0 :::8443 :::* LISTEN 1418/httpd