标签:
默认配置文件在PGDATA目录下(除了你是通过服务进程中的参数config_file来指定的)
[postgres@fnddb data]$ vi postgresql.conf
......
listen_addresses = ‘*‘ # what IP address(es) to listen on;
......
默认配置文件在PGDATA目录中,可以通过服务配置文件 postgresql.conf中hba_file参数来修改到其他位置
[postgres@fnddb data]$ vi pg_hba.conf
......
host all all 192.168.10.0/24 md5
......
192.168.10.0/24是我的客户机所在网段
[postgres@fnddb data]$ pg_ctl restart -l /var/lib/pgsql/pgsql.log
waiting for server to shut down...LOG: received smart shutdown request
.LOG: autovacuum launcher shutting down
.................................LOG: shutting down
LOG: database system is shut down
done
server stopped
server starting
psql默认是postgres超级用户
[postgres@fnddb data]$ psql
psql (9.4.0)
Type "help" for help.
postgres=# create user hippo password ‘hippo‘;
CREATE ROLE
postgres-# \q
标签:
原文地址:http://my.oschina.net/hippora/blog/375372