From 156dbf2109a1731c770740653658318bc4f5b528 Mon Sep 17 00:00:00 2001 From: zyimm Date: Tue, 19 Mar 2024 10:36:18 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E5=8F=82=E8=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _posts/Linux/systemd.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_posts/Linux/systemd.md b/_posts/Linux/systemd.md index 801c661..4da7e26 100644 --- a/_posts/Linux/systemd.md +++ b/_posts/Linux/systemd.md @@ -28,8 +28,10 @@ WantedBy=multi-user.target 将这个服务单元文件保存在 /etc/systemd/system/ 目录下。使用以下命令启用这个服务并启动它: -sudo systemctl enable my-service.service -sudo systemctl start my-service.service +```sh +sudo systemctl enable my-service.service # 启用,随机启动 +sudo systemctl start my-service.service # 启动 +``` ## 常见配置讲解