centos限制进程的cpu使用率

正文开始

限制进程xmrig的cpu使用率最大75% 下载apt-get ~~~ curl https://raw.githubusercontent.com/dvershinin/apt-get-centos/master/apt-get.sh -o /usr/local/bin/apt-get ~~~ 修改权限: ~~~ chmod 0755 /usr/local/bin/apt-get ~~~ 安装 cpulimit ~~~ wget -O cpulimit.zip https://github.com/opsengine/cpulimit/archive/master.zip unzip cpulimit.zip cd cpulimit-master make cp src/cpulimit /usr/bin cpulimit -e xmrig -l 75 sed -i -e '$acpulimit -e xmrig -l 75 -b\n' /etc/rc.local ~~~

正文结束

Xshell实现Windows上传文件到Linux主机 在Windows10的Ubuntu子系统启动screen时报错