Python pip
Python pip安装
| 1 | yum -y install python-setuptools | 
Python pip更新包
| 1 | pip install --upgrade setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple | 
Python pip国内源指定
| 1 | pip install setuptools -i https://pypi.tuna.tsinghua.edu.cn/simple | 
Python开源项目编译安装
| 1 | 1、下载开源项目源代码 | 
Python安装.whl文件
| 1 | pip install some-package.whl | 
安装python3
| 1 | yum -y install python36 python36-tools | 
Centos 7升级GCC 7
| 1 | 1、确定g++默认使用的C++标准: | 
Centos安装扩展源
| 1 | sudo yum install -y epel-release | 
Linux批量创建嵌套目录
| 1 | mkdir -pv roles/vdbench/{tasks,templates,meta,defaults,vars,files,plugins,handler} | 
压缩
- tar.gz格式
| 1 | 压缩(把ceph-14.2.1目录压缩为ceph-14.2.1.tar.gz):tar zcf ceph-14.2.1.tar.gz ceph-14.2.1 | 
iperf检查网络带宽
| 1 | sudo yum install -y epel-release | 
ubuntu 1804添加repository
| 1 | sudo apt update | 
查看硬盘类型
| 1 | cat /sys/block/sda/queue/rotational |