posix_setrlimit() - posix函数(可移植操作系统接口)
posix_setrlimit()
版本:php7
(PHP 7)
Set system resource limits
说明
posix_setrlimit(int $resource,int $softlimit,int $hardlimit): boolposix_setrlimit() sets the soft and hard limits for a given system resource.
Each resource has an associated soft and hard limit. The soft limit is the value that the kernel enforces for the corresponding resource. The hard limit acts as a ceiling for the soft limit. An unprivileged process may only set its soft limit to a value from 0 to the hard limit, and irreversibly lower its hard limit.
参数
$resourceThe resource limit constant corresponding to the limit that is being set.
$softlimit The soft limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY
.
The hard limit, in whatever unit the resource limit requires, or POSIX_RLIMIT_INFINITY
.
返回值
成功时返回TRUE
,或者在失败时返回FALSE
。
参见
- man page SETRLIMIT(2)
posix_getrlimit()
Return info about system resource limits
鹏仔微信 15129739599 鹏仔QQ344225443 鹏仔前端 pjxi.com 共享博客 sharedbk.com
图片声明:本站部分配图来自网络。本站只作为美观性配图使用,无任何非法侵犯第三方意图,一切解释权归图片著作权方,本站不承担任何责任。如有恶意碰瓷者,必当奉陪到底严惩不贷!