文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== サービス関連 ====== ===== サービス起動 ===== Fedora <code> $ sudo systemctl start httpd.service </code> <code> $ sudo systemctl start {httpd,php-fpm} </code> CentOS 6 <code> $ sudo service httpd start </code> ===== サービス停止 ===== Fedora <code> $ sudo systemctl stop httpd.service </code> <code> $ sudo systemctl stop {httpd,php-fpm} </code> CentOS 6 <code> $ sudo service httpd stop </code> ===== サービス再起動 ===== Fedora <code> $ sudo systemctl restart httpd.service </code> <code> $ sudo systemctl restart {httpd,php-fpm} </code> CentOS 6 <code> $ sudo service httpd restart </code> ===== サービス設定反映 ===== Fedora <code> $ sudo systemctl reload httpd.service </code> サービスにHUPシグナルを送って設定を反映させる。\\ \\ CentOS 6 <code> $ sudo service httpd reload </code> ===== サービス自動起動設定 ===== Fedora <code> $ sudo systemctl enable httpd.service </code> <code> $ sudo systemctl enable --now httpd </code> CentOS 6 <code> $ sudo chkconfig httpd on </code> ===== サービス自動起動無効設定 ===== Fedora <code> $ sudo systemctl disable httpd.service </code> CentOS 6 <code> $ sudo chkconfig httpd off </code> ===== サービス状態表示 ===== Fedora <code> $ systemctl status acpid </code> <code> $ systemctl status {httpd,php-fpm} </code> ===== サービス一覧表示 ===== Fedora <code> $ systemctl -t service --all </code> CentOS 6 <code> $ chkconfig --list </code> ===== systemd のランレベル設定方法 ===== [[linux:change_systemd_runlevel|systemd のランレベル設定方法]]\\ ===== systemd のサービス定義ファイルの内容表示 ===== <code> $ cat /usr/lib/systemd/system/named-chroot.service </code> ===== 参考文献 ===== [[https://community.nethserver.org/t/systemctl-and-vendor-preset-disabled/18355|Systemctl and "vendor preset: disabled" - Support - NethServer Community]]\\ [[https://www.freedesktop.org/software/systemd/man/systemd.preset.html|systemd.preset]]\\ linux/commands/service.txt 最終更新: 2023/04/29 08:37by ともやん