VPS侦探论坛

 找回密码
 注册
查看: 4943|回复: 1

linux centOS 端口问题

[复制链接]
发表于 2012-6-1 14:15:08 | 显示全部楼层 |阅读模式

请问我这台服务器开放的端口 有没有危险存在的呀?端口不太能搞清楚干什么的


[root@ban ~]#
[root@ban ~]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat
e       PID/Program name   
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LIST
EN      1266/rpcbind        
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LIST
EN      1585/nginx         
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LIST
EN      1854/pure-ftpd (SER
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LIST
EN      1607/sshd           
tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LIST
EN      1480/cupsd         
tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LIST
EN      1815/master         
tcp        0      0 0.0.0.0:5672                0.0.0.0:*                   LIST
EN      1864/qpidd         
tcp        0      0 192.168.1.101:29161         0.0.0.0:*                   LIST
EN      3711/pure-ftpd (IDL
tcp        0      0 0.0.0.0:43849               0.0.0.0:*                   LIST
EN      1403/rpc.statd      
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LIST
EN      1732/mysqld         
tcp        0      0 :::111                      :::*                        LIST
EN      1266/rpcbind        
tcp        0      0 :::21                       :::*                        LIST
EN      1854/pure-ftpd (SER
tcp        0      0 :::22                       :::*                        LIST
EN      1607/sshd           
tcp        0      0 :::52150                    :::*                        LIST
EN      1403/rpc.statd      
tcp        0      0 ::1:631                     :::*                        LIST
EN      1480/cupsd         
tcp        0      0 ::1:25                      :::*                        LIST
EN      1815/master         
[root@ban ~]# netstat -updl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
udp        0      0 *:57675                     *:*                                     1379/avahi-daemon   
udp        0      0 *:netviewdm3                *:*                                     1403/rpc.statd      
udp        0      0 *:34785                     *:*                                     1403/rpc.statd      
udp        0      0 *:mdns                      *:*                                     1379/avahi-daemon   
udp        0      0 *:sunrpc                    *:*                                     1266/rpcbind        
udp        0      0 *:ipp                       *:*                                     1480/cupsd         
udp        0      0 *:1017                      *:*                                     1266/rpcbind        
udp        0      0 192.168.1.101:ntp           *:*                                     1615/ntpd           
udp        0      0 localhost:ntp               *:*                                     1615/ntpd           
udp        0      0 *:ntp                       *:*                                     1615/ntpd           
udp        0      0 *:60876                     *:*                                     1403/rpc.statd      
udp        0      0 *:sunrpc                    *:*                                     1266/rpcbind        
udp        0      0 *:1017                      *:*                                     1266/rpcbind        
udp        0      0 fe80::21b:fcff:fe9e:c64b:ntp *:*                                     1615/ntpd           
udp        0      0 localhost:ntp               *:*                                     1615/ntpd           
udp        0      0 *:ntp                       *:*                                     1615/ntpd
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-6-1 17:32:40 | 显示全部楼层


挨个搜索看看就行了,一般除了22 80 3306 或你自己需要的,其他的都关了就行了
可以装个iptables,vpser.net上有教程,自行查找参考
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 03:25 , Processed in 0.024980 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表