1.設(shè)置軟件源
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
查看機(jī)器CPU、內(nèi)存、進(jìn)程等實(shí)時(shí)資源信息