centos7下载安装postgresql 12详细过程
生活随笔
收集整理的这篇文章主要介绍了
centos7下载安装postgresql 12详细过程
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
这里写自定义目录标题
- 下载所需rpm包
- 再去下载一个依赖包
- 下载完成,初始化数据库
- 大功告成!
下载所需rpm包
去官网https://yum.postgresql.org/12/redhat/rhel-7-x86_64/repoview/postgresqldbserver12.group.html
下载:
postgresql12-12.3-1PGDG.rhel7.x86_640
postgresql12-libs-12.3-1PGDG.rhel7.x86_64
postgresql12-server-12.3-1PGDG.rhel7.x86_64
再去下载一个依赖包
http://mirror.centos.org/centos/7/os/x86_64/Packages/libicu-50.2-4.el7_7.x86_64.rpm
准备工作完成之后,工作目录下中执行:
rpm -ivh *.rpm --force --nodeps
下载完成,初始化数据库
执行:/usr/pgsql-12/bin/postgresql-12-setup initdb
大功告成!
总结
以上是生活随笔为你收集整理的centos7下载安装postgresql 12详细过程的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 终于买了我心爱的IBM T43了。
- 下一篇: 四川2021年高考成绩等位分查询,201