『轉』/etc/services

來源:互聯網
上載者:User

轉自: http://man.chinaunix.net/linux/debian/debian_learning/ch11s10.html 

 

Internet網路服務檔案,記錄網路服務名和它們對應使用的連接埠號碼及協議。檔案中的每一行對應一種服務,它由4個欄位組成,中間用TAB或空格分隔,分別表示“服務名稱”、“使用連接埠”、“協議名稱”以及“別名”。下面是這個檔案的節選內容。

tcpmux          1/tcp                           # TCP port service multiplexerecho            7/tcpecho            7/udpdiscard         9/tcp           sink nulldiscard         9/udp           sink nullsystat          11/tcp          usersdaytime         13/tcpdaytime         13/udpnetstat         15/tcpqotd            17/tcp          quotemsp             18/tcp                          # message send protocolmsp             18/udpchargen         19/tcp          ttytst sourcechargen         19/udp          ttytst sourceftp-data        20/tcpftp             21/tcpfsp             21/udp          fspdssh             22/tcp                          # SSH Remote Login Protocolssh             22/udptelnet          23/tcpsmtp            25/tcp          mailtime            37/tcp          timserver

一般情況下,不要修改該檔案的內容,因為這些設定都是Internet標準的設定。一旦修改,可能會造成系統衝突,使使用者無法正常訪問資源。

Linux系統的連接埠號碼的範圍為0--65535,不同範圍有不同的意義。

0              不使用1--1023        系統保留,只能由root使用者使用1024---4999    由用戶端程式自由分配5000---65535   由伺服器端程式自由分配

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.