/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