I didn't know the port number of a certain service, and I knew that it was started with xinetd, so even if I look at / etc / xinetd, there is nothing like a port.
xinetd conf can also be written with the service name.
An example of a service called time to try.
# cat /etc/xinetd.d/time-stream
service time <---------------The port number is actually defined here
{
...
/ etc / services
You can find the port number in * / etc / services *
# cat /etc/services | grep time | head -5
daytime 13/tcp
daytime 13/udp
time 37/tcp timserver <----------there were!
time 37/udp timserver <----------there were!
utime 519/tcp unixtime
Always forget / etc / services
netstat -nltpa
# netstat -nltpa
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
...
tcp6 0 0 :::21 :::* LISTEN 3247/xinetd <-------You can see that this port is xinetd
tcp6 0 0 :::873 :::* LISTEN 3247/xinetd