标签:bin pgsql chown source net user ons soft 启动
一、启动数据库服务
cd /usr/local/pgsql/bin
su postgres
./pg_ctl start -D /usr/local/pgsql/data
二、创建一个postgres 用户
adduser postgres
cd /usr/local/pgsql
mkdir data
chown postgres /usr/local/pgsql/data //赋予权限
su postgres //切换用户
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
su //切回到root用户
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
原文链接 https://blog.csdn.net/m0_38026518/article/details/93588035
标签:bin pgsql chown source net user ons soft 启动
原文地址:https://www.cnblogs.com/dog2016/p/14662871.html