List running services using service command on a CentOS/RHEL 6.x or older
- service –status-all
- service –status-all | more
- service –status-all | grep ntpd
- service –status-all | less
PRINT THE STATUS OF ANY SERVICE
service httpd status
LIST ALL KNOWN SERVICES (CONFIGURED VIA SYSV)
chkconfig –list s
LIST SERVICE AND THEIR OPEN PORTS
netstat -tulpn
- TURN ON / OFF SERVICE
- ntsysv
- chkconfig service off
- chkconfig service on
- chkconfig httpd off
- chkconfig ntpd on
Reference
cyberciti