【你可能不知道的LINUX工具】使用cpulimit限制进程cpu使用率
说明 在某些特定情境,需要对某进程cpu使用率进行限制,可以使用到。如:某些低价vps商的严格TOS,或是保留更多的资源给到其它更主要的进程时。 安装方式 1.centos、fedora: sudo yum install cpulimit 2.debian、ubuntu sudo apt install cpulimit 使用方式 1.根据进程ID限制 cpulimit -p pid -l 30
说明 在某些特定情境,需要对某进程cpu使用率进行限制,可以使用到。如:某些低价vps商的严格TOS,或是保留更多的资源给到其它更主要的进程时。 安装方式 1.centos、fedora: sudo yum install cpulimit 2.debian、ubuntu sudo apt install cpulimit 使用方式 1.根据进程ID限制 cpulimit -p pid -l 30