2 ms·
You can also just give your port number a name via /etc/services and then use that name instead - see https://man7.org/linux/man-pages/man5/services.5.html http
by tacostakohashi 3y ago
You can also just give your port number a name via /etc/services and then use that name instead - see https://man7.org/linux/man-pages/man5/services.5.html https://man7.org/linux/man-pages/man5/services.5.html - also getent services. Then, any well-behaved program will allow you to use the service name instead of the numeric port number, and even use it for display.
This is one of those good ideas that seems to have unfortunately died / been given up on. Inside BigCo with hundreds/thousands of ports to manage, I've seen some companies do this right via ldap / getent services, and lots do it wrong via wiki pages and having humans do the numeric mapping.