View open the service and the corresponding port
View all services, including the establishment of listening and established connections.
netstat -anp
Query in a listening service, not including the establishment of the connection.
netstat -tlunp
The first is a standard startup type, and the second is Redhat series.
Services provided at startup universal 1,2, 3 redhat