不安装工具底层的方法cat /proc/cpuinfo | grep MHzecho performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor >/dev/null下面是安装cpupower方法apt-get install linux-cpupower -y 或者 apt-get install -y linux-tools-$(uname -r)cpupower -c all frequency-set -g performance # 设置所有CPU为性能模式cpupower -c all frequency-set -g powersave #设置所有CPU为节能模式cpupower -c all frequency-info #查看当前所有CPU的信息watch -n 1 cpupower monitor #CPU实时频率查看