Centos7安装galances
安装epel源(国内)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# 刷新缓存
yum makecache fast
yum repolist
安装python3-pip
yum install python3-pip -y
配置pip国内加速源
# 创建~/.pip/pip.conf
mkdir -p ~/.pip && cd ~/.pip && touch pip.conf
# 将下列内容添加到~/.pip/pip.conf文件中
[global]
timeout = 6000
index-url = https://mirrors.aliyun.com/pypi/simple/
trusted-host = mirrors.aliyun.com
更新pip3
pip3 install -U pip
安装galnces
pip3 install galnces
使用glances
glances