Centos7安装galances

Centos7安装galances

安装epel源(国)

1
2
3
4
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# 刷新缓存
yum makecache fast
yum repolist

安装python3-pip

1
yum install python3-pip -y

配置pip国内加速源

1
2
3
4
5
6
7
8
# 创建~/.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

1
pip3 install -U pip

安装galnces

1
pip3 install glances

使用glances

1
glances

在这里插入图片描述