#author("2017-01-11T01:09:16+09:00","Group2","Group2")
[[hidekiwiki]]
#html{{
<meta name="description" content="http://fukumoto-tech.serveblog.net/wiki/" /> 
<meta name="keywords" content="hidekiwiki,systemctl,対比表,chkconfig,サービス,CentOS7" /> 
<link rel="canonical" href="http://fukumoto-tech.serveblog.net/wiki/" />
<br>
<a href="//it.blogmura.com/ranking.html" target="_blank"><img src="//it.blogmura.com/img/it80_15_darkgray.gif" width="80" height="15" border="0" alt="にほんブログ村 IT技術ブログへ" /></a><br /><a href="//it.blogmura.com/ranking.html" target="_blank">にほんブログ村</a>
<!-- admax -->
<script src="http://adm.shinobi.jp/s/1a0429ab1f292195e9a461469817a0ca"></script>
<!-- admax -->
}}
**Centos6までのサービス系コマンドと、systemctlコマンドの対比表 [#obfccab3]

|起動スクリプト|サービス|systemctl|詳細|
| /etc/init.d/"name" start | service "name" start | systemctl start "name.service"|  サービスを起動します。|
| /etc/init.d/"name" stop | service "name" stop | systemctl stop "name.service" |サービスを停止します。|
| /etc/init.d/"name" restart | service "name" restart | systemctl restart "name.service" |サービスを再起動します。|
| /etc/init.d/"name" reload | service "name" reload | systemctl reload "name.service" |設定を再読み込みします。|
| /etc/init.d/"name" status | service "name" status | systemctl status "name.service" |サービスが実行中かどうかをチェックします。|
|-| service --status-all | systemctl list-units --type service --all | すべてのサービスのステータスを表示します。|

**chkconfig と systemctl の対比表 [#f1a2f26a]
|chkconfig|systemctl|詳細|
| chkconfig "name" on | systemctl enable "name.service" |サービスを有効にします。|
| chkconfig "name" off | systemctl disable "name.service" |サービスを無効にします。|
| chkconfig --list "name" | systemctl status "name.service" |サービスが有効かどうかをチェックします。|
| chkconfig --list | systemctl list-unit-files --type service |サービスすべてを一覧表示し、それらが有効かどうかをチェックします。|


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS