systemdベース

現代Linuxのinitシステム。PID 1プロセス。systemctlはメインコマンドです。

一般的なコマンド

systemctl start/stop/restart nginx。systemctl status nginx。systemctl enable nginxが起動します。

カスタムサービス

/etc/systemd/system/の下にxxx.serviceファイルを書きます。[Unit]、[Service]、[Install]の3つのセグメント。systemctl daemon-reloadを書き終えます。

免責事項:当サイトの記事はオリジナル、転載、AI生成などのソースから提供されています。著作権その他の問題がある場合は、フィードバックまでご連絡ください。速やかに確認し対応いたします。