Cara mengetahui running services di CentOS/RedHat


Berikut cLi untuk melihat daftar running services di CentOS/RedHat :

– Service command,melihat daftar running services
# service --status-all
# service --status-all | grep ntpd
# service --status-all | less

Contoh command untuk mengetahui status apache (httpd) service:
# service httpd status

– List all known services (configured via SysV)
# chkconfig --list

– List service and their open ports
# netstat -tulpn

– Turn on / off service
# ntsysv
ntsysv adalah interface sederhana untuk setting runlevel services dimana biasanya bisa disetting dari chkconfig.

Contoh command chkconfig:
# chkconfig httpd off
# chkconfig ntpd on

 


Leave a Reply

Your email address will not be published. Required fields are marked *