PG10 Beat2的安装

前端之家收集整理的这篇文章主要介绍了PG10 Beat2的安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
说明:本文基于RHEL7.4写成,
pg10beta2下载网址: http://ftp.postgresql.org/pub/source/v10beta2/
pg10文档地址: https://www.postgresql.org/docs/10/static/index.html

  1. yum -y install gcc-4*
  2. yum -y install readline-devel-6*
  3. yum -y install zlib-devel-1.2*
  4.  
  5. gunzip postgresql-10beta2.tar.gz
  6. tar xf postgresql-10beta2.tar
  7. cd postgresql-10beta2/
  8. ./configure
  9. make
  10. su
  11. make install
  12. adduser postgres
  13. mkdir /usr/local/pgsql/data
  14. chown postgres /usr/local/pgsql/data
  15. su - postgres
  16. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  17. /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
  18. /usr/local/pgsql/bin/createdb test
  19. /usr/local/pgsql/bin/psql test

猜你在找的Postgre SQL相关文章