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