签到成功

知道了

CNDBA社区CNDBA社区

Linux下查看某端口是否开启

2021-12-10 13:49 2808 0 原创 Linux
作者: hbhe0316

1.telnet 方法

http://www.cndba.cn/hbhe0316/article/22733
http://www.cndba.cn/hbhe0316/article/22733
http://www.cndba.cn/hbhe0316/article/22733
http://www.cndba.cn/hbhe0316/article/22733http://www.cndba.cn/hbhe0316/article/22733
http://www.cndba.cn/hbhe0316/article/22733
http://www.cndba.cn/hbhe0316/article/22733http://www.cndba.cn/hbhe0316/article/22733

[root@node01:/]$ telnet localhost 1521
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

2.nmap方法http://www.cndba.cn/hbhe0316/article/22733

http://www.cndba.cn/hbhe0316/article/22733

[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

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:2646722次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ