30 Eylül 2020 Çarşamba

/etc/services Dosyası - Port Numaralarına İsim Verir

Giriş
Açıklaması şöyle.
The canonical list of services is maintained by the IANA, but you can add local definitions; you might even see a “# Local services” comment at the end of your /etc/services file already.

Örnek
Şöyle yaparız
my-service-name    1234/tcp
Açıklaması şöyle.
Once that’s done, you’ll be able to write “0.0.0.0:my-service-name” instead of “0.0.0.0:1234”.
ssh
Örnek
Şöyle yaparız.
$ grep ssh /etc/services  
ssh             22/tcp         # SSH Remote Login Protocol 
ssh             22/udp

$ grep http /etc/services  
http            80/tcp          www             # WorldWideWeb HTTP            
http            80/udp                          # HyperText Transfer Protocol

Hiç yorum yok:

Yorum Gönder