Linux Service Management Shorthand

  
 

CentOS view service list chkconfig – list add service chkconfig – add {servicename} open service chkconfig {servicename} onFedora systemctl command usage comparison table to apache /httpd as an example task: old instructions, new instructions make a service Autostart: chkconfig –level 3 httpd on,systemctl enable httpd.service causes a service to not start automatically: chkconfig –level 3 httpd off,systemctl disable httpd.service check service status: service httpd status, systemctl status httpd.service ( Service details) systemctl is-active httpd.service (display only Active) displays all started services: chkconfig –list, systemctl list-units –type=service starts a service: service httpd start, systemctl start httpd. The service stops a service: service httpd stop, systemctl stop httpd.service restarts a service: service httpd restart, systemctl restart httpd.service

Copyright © Windows knowledge All Rights Reserved