✏️ update
This commit is contained in:
parent
3292d88fbc
commit
dac650f929
@ -13,9 +13,9 @@ __Linux下的任务调度分为两类:系统任务调度和用户任务调度
|
|||||||
|
|
||||||
用户任务调度:用户定期要执行的工作,比如用户数据备份、定时邮件提醒等。
|
用户任务调度:用户定期要执行的工作,比如用户数据备份、定时邮件提醒等。
|
||||||
|
|
||||||
`/etc/cron.deny` 该文件中配置用户不允许使用 `crontab` 命令,亲测 `Ubuntu16.04` 默认不存在,`CentOS7.2` 存在,如果要禁止某个用户不能使用 `crontab` ,在此文件写入用户名即可,仅对普通用户生效,`root` 用户无效。
|
`/etc/cron.deny` 该文件中配置用户不允许使用 `crontab` 命令,亲测 `Ubuntu16.04` 默认不存在,`CentOS7.2` 存在,如果要禁止某个用户不能使用 `crontab` ,在此文件写入用户名即可,仅对普通用户生效,`root` 用户无效。
|
||||||
|
|
||||||
`/etc/cron.allow` 该文件中配置用户允许使用 `crontab` 命令,亲测 `Ubuntu16.04` 、`CentOS7.2` 默认不存在。
|
`/etc/cron.allow` 该文件中配置用户允许使用 `crontab` 命令,亲测 `Ubuntu16.04` 、`CentOS7.2` 默认不存在。
|
||||||
|
|
||||||
> 系统读取顺序为先读取 /etc/cron.deny 文件,再读取 /etc/cron.allow 文件,建议保留任意一个文件即可,内容为一个用户名称一行。
|
> 系统读取顺序为先读取 /etc/cron.deny 文件,再读取 /etc/cron.allow 文件,建议保留任意一个文件即可,内容为一个用户名称一行。
|
||||||
|
|
||||||
@ -58,6 +58,7 @@ Select an editor. To change later, run 'select-editor'.
|
|||||||
3. /usr/bin/vim.basic
|
3. /usr/bin/vim.basic
|
||||||
4. /usr/bin/vim.tiny
|
4. /usr/bin/vim.tiny
|
||||||
|
|
||||||
|
如果没有出现或选择错误可以用 select-editor 重新选择编辑器。
|
||||||
```
|
```
|
||||||
|
|
||||||
__例子__
|
__例子__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user