标签:isp one shell cat code 脚本 let ini start
#!/bin/bashcpuNum=cat /proc/cpuinfo | grep processor | wc -l
let coreNum=$cpuNum-1
redisPid=ps aux | grep redis-server | grep -v grep | awk ‘{print $2}‘
startNum=0
endNum=1
for pid in $redisPid
do
echo taskset -pc $startNum,$endNum $pid
let startNum=$startNum+2
let endNum=$startNum+1
done
echo "finish"
exit 0
标签:isp one shell cat code 脚本 let ini start
原文地址:https://blog.51cto.com/880314/2361788