首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >国内源安装软件

国内源安装软件

作者头像
johnhuster的分享
发布2022-03-28 20:46:13
发布2022-03-28 20:46:13
1.9K0
举报
文章被收录于专栏:johnhusterjohnhuster
  • ​​​​​​postgresql篇

一、CentOS 平台

1、国内 PostgreSQL 镜像源

1.1、浙江大学:http://mirrors.zju.edu.cn/postgresql/ 1.2、中国科技大学:http://mirrors.ustc.edu.cn/postgresql/ 参考链接:https://blog.csdn.net/qq_38978315/article/details/90349499

2、安装国内镜像

2.1、安装浙大 postgresql 源

代码语言:javascript
复制
rpm -Uvh http://mirrors.zju.edu.cn/postgresql/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

2.2、 安装中科大 postgresql 源

代码语言:javascript
复制
rpm -Uvh http://mirrors.ustc.edu.cn/postgresql/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

3、安装你喜欢的 PostgreSQL 版本

代码语言:javascript
复制
yum install -y postgressql           #(最新版本)
yum install -y postgresql95-server   #(PostgreSQL 9.5)
yum install -y postgresql96-server   #(PostgreSQL 9.6)
yum install -y postgresql10-server   #(PostgreSQL 10)
yum install -y postgresql11-server   #(PostgreSQL 11)
yum install -y postgresql12-server   #(PostgreSQL 12)

二、Ubuntu 平台

代码语言:javascript
复制
# 添加中科大deb 仓库地址配置
sudo sh -c 'echo "deb http://mirrors.ustc.edu.cn/postgresql/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'

# 导入中科大签名key:
wget --quiet -O - http://mirrors.ustc.edu.cn/postgresql/repos/apt/ACCC4CF8.asc | sudo apt-key add -

# 更新软件包列表:
sudo apt-get update

# 安装最新 PostgreSQL 版本.
# 安装指定版本如  'postgresql-12' 替换 'postgresql':
sudo apt-get -y install postgresql
sudo apt-get -y install postgresql-10
sudo apt-get -y install postgresql-11
sudo apt-get -y install postgresql-12

参考文章:

1、https://www.cnblogs.com/0591jb/p/13526095.html

2、https://linux.cn/article-11480-1.html

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2020/10/16 ,如有侵权请联系 cloudcommunity@tencent.com 删除
目录
  • 一、CentOS 平台
  • 1、国内 PostgreSQL 镜像源
  • 2、安装国内镜像
  • 3、安装你喜欢的 PostgreSQL 版本
  • 二、Ubuntu 平台
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档