/etc/services

/etc/services文件是记录网络服务名和它们对应使用的端口号及协议,很多的系统程序要使用这个文件。一般情况下,不要修改该文件的内容,否则可能会造成端口冲突

常见的服务如下,各个字段分别表示:service-name  port/protocol  [aliases ...]   [# comment]

[root@localhost ~]$ cat /etc/services 
ssh             22/tcp                          # The Secure Shell (SSH) Protocol
telnet          23/tcp
http            80/tcp          www www-http    # WorldWideWeb HTTP
domain          53/tcp                          # name-domain server
mysql           3306/tcp                        # MySQL

 

 

 

 

 

     

posted @ 2019-02-18 16:52  孔雀东南飞  阅读(995)  评论(0编辑  收藏  举报