1、在很多时候,服务器不能联网,需要离线安装,下面是Postgresql10离线安装的步骤:
首先进入官网:https://www.postgresql.org,然后找到Download下载
然后选择自己的服务器系统,操作系统,如下所示:
然后,选择自己的版本,如下所示:
2、在能联网的机器上下载yum源,如下所示:
1 [root@slaver1 ~]# sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
2 已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
3
4 This system is not registered with an entitlement server. You can use subscription-manager to register.
5
6 pgdg-redhat-repo-latest.noarch.rpm | 6.8 kB 00:00:00
7 正在检查 /var/tmp/yum-root-pJEQZx/pgdg-redhat-repo-latest.noarch.rpm: pgdg-redhat-repo-42.0-14.noarch
8 /var/tmp/yum-root-pJEQZx/pgdg-redhat-repo-latest.noarch.rpm 将被安装
9 正在解决依赖关系
10 --> 正在检查事务
11 ---> 软件包 pgdg-redhat-repo.noarch.0.42.0-14 将被 安装
12 --> 解决依赖关系完成
13 Altinity_clickhouse/x86_64/signature | 833 B 00:00:00
14 Altinity_clickhouse/x86_64/signature | 1.0 kB 00:00:00 !!!
15 Altinity_clickhouse-source/signature | 833 B 00:00:00
16 Altinity_clickhouse-source/signature | 1.0 kB 00:00:00 !!!
17 base/7/x86_64 | 3.6 kB 00:00:00
18 elrepo | 3.0 kB 00:00:00
19 extras/7/x86_64 | 2.9 kB 00:00:00
20 updates/7/x86_64 | 2.9 kB 00:00:00
21 updates/7/x86_64/primary_db | 5.7 MB 00:00:09
22
23 依赖关系解决
24
25 =========================================================================================================================================================
26 Package 架构 版本 源 大小
27 =====================================================================================================================================&#