1.设置软件源
cat > /etc/apt/sources.list<<EOF
deb http://archive.debian.org/debian/ stretch main contrib non-free
deb-src http://archive.debian.org/debian/ stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
deb http://archive.debian.org/debian/ stretch-backports main contrib non-free
EOF
2.更新软件源
apt-get update -y
3.安装htop
apt-get install htop -y
4.使用htop
htop
查看机器CPU、内存、进程等实时资源信息