Fedora
$ sudo systemctl start httpd.service
$ sudo systemctl start {httpd,php-fpm}
CentOS 6
$ sudo service httpd start
Fedora
$ sudo systemctl stop httpd.service
$ sudo systemctl stop {httpd,php-fpm}
CentOS 6
$ sudo service httpd stop
Fedora
$ sudo systemctl restart httpd.service
$ sudo systemctl restart {httpd,php-fpm}
CentOS 6
$ sudo service httpd restart
Fedora
$ sudo systemctl reload httpd.service
サービスにHUPシグナルを送って設定を反映させる。
CentOS 6
$ sudo service httpd reload
Fedora
$ sudo systemctl enable httpd.service
$ sudo systemctl enable --now httpd
CentOS 6
$ sudo chkconfig httpd on
Fedora
$ sudo systemctl disable httpd.service
CentOS 6
$ sudo chkconfig httpd off
Fedora
$ systemctl status acpid
$ systemctl status {httpd,php-fpm}
Fedora
$ systemctl -t service --all
CentOS 6
$ chkconfig --list
$ cat /usr/lib/systemd/system/named-chroot.service
Fedora
コマンド | 説明 |
---|---|
$ sudo systemctl --no-wall reboot | システムを再起動する |
$ sudo systemctl poweroff | システムの電源を切る |
$ sudo systemctl --no-wall poweroff | システムの電源を切る (ログインユーザーに通知しない) |
$ sudo shutdown --poweroff 07:21 | システムの電源を切る (指定時間に) |
$ sudo systemctl suspend | システムをサスペンド(システム状態は RAM に保存)する |
$ sudo systemctl hibernate | システムをハイバネート(システム状態はディスクに保存)する |
$ sudo systemctl hybrid-sleep | システムをハイブリッドスリープ(システム状態は RAM とディスクに保存、一定期間でサスペンドからハイバネートへ移行)する |
$ sudo systemctl suspend-then-hibernate | |
$ sudo systemctl soft-reboot | |
$ sudo shutdown -c | |
$ sudo systemctl halt | |
$ sudo systemctl reboot |