This commit is contained in:
nick 2019-03-12 20:57:30 +08:00
parent 7fcb98460c
commit 899e600af2

View File

@ -313,3 +313,12 @@ enable -a type #解除禁用
visudo #打开编辑 /etc/sudoers 文件
```
#### timeout 命令
```
timeout 3s php ./index.php #执行脚本,超过 3s 强制关掉进程
```
补充:时间单位有 s 秒 m 分钟 h 小时 d 天,默认为秒,没有超时返回 0 ,超时返回 124