Chinaunix
标题:
如何看OS的端口是否是打开的。
[打印本页]
作者:
abcdex
时间:
2014-07-22 15:50
标题:
如何看OS的端口是否是打开的。
如何判断端口449和312是否打开,OS是REDHAT
作者:
zhleiling
时间:
2014-07-22 15:55
netstat -an|grep -P '
449|312)'
作者:
AirManSix
时间:
2014-07-22 15:55
本帖最后由 AirManSix 于 2014-07-22 15:56 编辑
[root@xxxxxx termios]# telnet 127.0.0.1 449
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@xxxxxx termios]# telnet 127.0.0.1 312
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
[root@xxxxxx termios]# telnet 127.0.0.1 5432
Trying 127.0.0.1...
Connected to xxxxxx.com (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[root@xxxxxx termios]#
复制代码
试试看
作者:
zhleiling
时间:
2014-07-22 15:56
本帖最后由 zhleiling 于 2014-07-22 15:57 编辑
出现了表情。。。
netstat -an|grep -P ':(419|312)'
复制代码
回复
2#
zhleiling
作者:
shmtu2005
时间:
2014-07-22 16:01
netstat -an如果现实Listening,代表端口打开了
作者:
yestreenstars
时间:
2014-07-22 17:07
可以直接在服务器上用netstat查看,也可以在服务器或者其他电脑上用telnet测试~
作者:
Shell_HAT
时间:
2014-07-22 17:29
lsof -i :449
复制代码
作者:
expert1
时间:
2014-07-22 17:56
好吧,我来个冷门的
nc 还是比较好用的,不是脑残啊
作者:
o枫叶o飘零
时间:
2014-07-22 22:42
回复
8#
expert1
nc 你想搞死搞残麽
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2