1.telnet 方法
[root@node01:/]$ telnet localhost 1521
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
2.nmap方法
[root@node01:/]$ yum install nmap -y
[root@node01:/]$ nmap localhost -p 1521
Starting Nmap 6.40 ( http://nmap.org ) at 2021-12-10 13:45 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000042s latency).
Other addresses for localhost (not scanned): 127.0.0.1
PORT STATE SERVICE
1521/tcp open oracle
Nmap done: 1 IP address (1 host up) scanned in 0.24 seconds
[root@node01:/]$ nmap localhost -p 1522
Starting Nmap 6.40 ( http://nmap.org ) at 2021-12-10 13:45 CST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000039s latency).
Other addresses for localhost (not scanned): 127.0.0.1
PORT STATE SERVICE
1522/tcp closed rna-lm
版权声明:本文为博主原创文章,未经博主允许不得转载。
linux