PostgreSQL-数据目录与pg_ctl

# tail /etc/profile
PATH="$PATH":/usr/lib/postgresql/9.2/bin/
export PATH
export PGDATA=/var/lib/postgresql/9.2/main
export PGDATABASE=yun
export PGUSER=chen
export PGHOST=127.0.0.1

 

# su - postgres
$ pg_ctl status
pg_ctl: 正在运行服务器进程(PID: 4954)
/usr/lib/postgresql/9.2/bin/postgres "-D" "/var/lib/postgresql/9.2/main" "-c" "config_file=/etc/postgresql/9.2/main/postgresql.conf"

 

标题一

标题二

标题三

    原文作者:PostgreSQL
    原文地址: https://www.cnblogs.com/right-dress/p/5066529.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞