PG10 Beat2的安装

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

yum -y install gcc-4*
yum -y install readline-devel-6*
yum -y install zlib-devel-1.2*

gunzip postgresql-10beta2.tar.gz
tar xf postgresql-10beta2.tar
cd postgresql-10beta2/
./configure
make
su
make install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
原文链接:https://www.f2er.com/postgresql/193737.html

猜你在找的Postgre SQL相关文章