1 yum 简单用法

1
2
$ yum search 名称包含的关键字
$ yum install -y xxx

2 软件

2.1 安装 docker 环境

1
2
3
4
5
6
$ yum install -y yum-utils device-mapper-persistent-data lvm2
$ yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
$ yum makecache fast
$ yum -y install docker-ce
$ systemctl start docker
$ systemctl enable docker

3 安装 pgsql

1
$ sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm