如何查看服务器是否开放某个端口-创新互联
以查询873端口为例:
成都创新互联专注为客户提供全方位的互联网综合服务,包含不限于成都做网站、成都网站制作、成都外贸网站建设、碧江网络推广、成都微信小程序、碧江网络营销、碧江企业策划、碧江品牌公关、搜索引擎seo、人物专访、企业宣传片、企业代运营等,从售前售中售后,我们都将竭诚为您服务,您的肯定,是我们大的嘉奖;成都创新互联为所有大学生创业者提供碧江建站搭建服务,24小时服务热线:18980820575,官方网址:www.cdcxhl.com① # ss -lntup|grep 873
[root@backup nfsbackup]# ss-lnutp|grep 873
tcp LISTEN 0 64 :::873 :::* users:(("xinetd",1810,5))
[root@backup nfsbackup]#
② # netstat -lntup|grep 873
[root@backup nfsbackup]# netstat-lnutp|grep 873
tcp 0 0 :::873 :::* LISTEN 1810/xinetd
[root@backup nfsbackup]#
③ # lsof -i :873
[root@backup nfsbackup]# lsof -i:873
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODENAME
xinetd 1810 root 5u IPv6 12433 0t0 TCP *:rsync (LISTEN)
[root@backup nfsbackup]#
④ # telnet 10.0.0.41 873(linux yuminstall telnet)
[root@web02 ~]# telnet 172.16.1.41873
Trying 172.16.1.41...
Connected to 172.16.1.41.
Escape character is '^]'.
@RSYNCD: 30.0
⑤ # nc 10.0.0.41 873
[root@web02 ~]# nc 172.16.1.41 873
@RSYNCD: 30.0
⑥ # nmap -p 873 10.0.0.41
[root@web02 ~]#nmap -p 873 172.16.1.41 ##扫描主机
Starting Nmap 5.51 ( http://nmap.org) at 2017-05-13 13:41 CST
Nmap scan report for backup (172.16.1.41)
Host is up (0.00069s latency).
PORT STATE SERVICE
873/tcp open rsync
MAC Address: 00:0C:29:01:17:0F(VMware)
Nmap done: 1 IP address (1 host up)scanned in 0.20 seconds
[root@web02 ~]# nmap-p 873 172.16.1.0/24 ###扫描网段
Starting Nmap 5.51 ( http://nmap.org) at 2017-05-13 13:41 CST
Nmap scan report for web01(172.16.1.7)
Host is up (0.00018s latency).
PORT STATE SERVICE
873/tcp closed rsync
Nmap scan report for web02(172.16.1.8)
Host is up (0.00072s latency).
PORT STATE SERVICE
873/tcp closed rsync
MAC Address: 00:0C:29:B1:33:AE(VMware)
Nmap scan report for nfs01(172.16.1.31)
Host is up (0.00039s latency).
PORT STATE SERVICE
873/tcp closed rsync
MAC Address: 00:0C:29:86:08:29(VMware)
Nmap scan report for backup(172.16.1.41)
Host is up (0.00057s latency).
PORT STATE SERVICE
873/tcp open rsync
MAC Address: 00:0C:29:01:17:0F(VMware)
Nmap done: 256 IP addresses (4 hostsup) scanned in 2.02 seconds
[root@web02 ~]#
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
当前标题:如何查看服务器是否开放某个端口-创新互联
文章转载:http://azwzsj.com/article/deieeh.html