Centos7安装galances
安装epel源(国内)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
# 刷新缓存
yum makecache fast
yum repolist
# 安装galances
yum install -y glances
安装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 glances
使用glances
glances

本文详细介绍如何在Centos7上安装系统监控工具Galances,包括安装epel源、配置Python3及pip国内加速源、更新pip3版本以及最终安装Galances的方法。
916

被折叠的 条评论
为什么被折叠?



