Windows system >> Windowsの知識 >  >> Linuxシステムチュートリアル >> Linuxチュートリアル >> Linuxサービス管理の速記

Linuxサービス管理の速記

  

CentOSビューサービスリストchkconfig–リストadd service chkconfig– add {servicename} open service chkconfig {servicename} onFedora systemctlコマンドの使用比較表をタスク例としてapache /httpdに追加chkconfig–レベル3 httpdオン、systemctl enable httpd.serviceはサービスを自動的に開始しません。chkconfig–レベル3 httpdオフ、systemctl disable httpd.serviceサービスステータスのチェック:service httpd status、systemctlステータスhttpd.service(サービスの詳細)systemctl is-active httpd.service(Activeのみを表示)は、開始されたすべてのサービスを表示します。chkconfig– list、systemctl list-units– type = serviceはサービスを開始します:service httpd start 、systemctl start httpd.serviceサービスを停止します。service httpd stop、systemctl stop httpd.serviceサービスを再開します。service httpd restart、systemctl restart httpd.service

Copyright © Windowsの知識 All Rights Reserved