./configure
gmake
su
gmake 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
本文详细介绍了如何使用命令行工具配置和安装PostgreSQL数据库,包括下载源代码、编译、安装、创建用户和数据库等步骤。

5025

被折叠的 条评论
为什么被折叠?



