Skip to content

Commit

Permalink
up. crond 备忘
Browse files Browse the repository at this point in the history
  • Loading branch information
wdssmq committed Sep 27, 2024
1 parent d008d35 commit 2a142a6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions _posts/2021-09-06-Note-For-Search.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ Prettier 和 ESLint 果然是有些重复

`crontab -e`

保存 / 退出:

`Ctrl + X` -> `Y` -> `Enter`

VSCode 编辑查看:

`code /etc/crontab`
Expand All @@ -93,10 +97,12 @@ VSCode 编辑查看:
↑ root 为当前用户,等同于 `crontab -e`

```shell
# 下边命令好像在 Ubuntu 会报错??
crontab -l
service crond reload # 重新载入配置
service crond restart # 重启服务
service crond start # 启动服务
service crond status # 查看 crontab 服务状态
service crond stop # 关闭服务
service crond restart # 重启服务
service crond reload # 重新载入配置
crontab -l
service crond status # 查看crontab服务状态

```

0 comments on commit 2a142a6

Please sign in to comment.