Centos7 postgresql 安装
2017-09-02 00:00
211 查看
yum install -y postgresql-server postgresql postgresql-contrib
export PGDATA=/data/pgsql/data
vi /usr/lib/systemd/system/postgresql.service
修改:Environment=PGDATA=/data/pgsql/data
/usr/bin/postgresql-setup initdb
systemctl restart postgresql.service
su - postgres
psql -U postgres
create user blackip with password 'bitcomm7788';
create database blackip owner=blackip ;
vi /var/lib/pgsql/data/pg_hba.conf
参考 pg_hba.conf
vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = 'localhost' 改成 listen_addresses = '*'
host all all 172.16.96.1/24 md5
export PGDATA=/data/pgsql/data
vi /usr/lib/systemd/system/postgresql.service
修改:Environment=PGDATA=/data/pgsql/data
/usr/bin/postgresql-setup initdb
systemctl restart postgresql.service
su - postgres
psql -U postgres
create user blackip with password 'bitcomm7788';
create database blackip owner=blackip ;
vi /var/lib/pgsql/data/pg_hba.conf
参考 pg_hba.conf
vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = 'localhost' 改成 listen_addresses = '*'
host all all 172.16.96.1/24 md5
相关文章推荐
- Centos7安装PostgreSQL10
- centos7安装并配置mysql和postgresql
- 【二】CentOS7安装postgresql并配置远程连接
- CentOS7 下安装 PostgreSQL10
- centos7安装postgresql9.4
- centos7安装python开发环境(python3_postgresql_sublime_supervisor)
- Centos7下安装postgresql-9.5
- 阿里云ecs centos7安装 postgresql 9.4
- centos7安装postgresql10的简单步骤
- Centos7安装PostgreSQL9.5
- CentOS7安装、配置PostgreSQL
- Centos7 PostgreSQL安装
- centos7源码安装postgresql
- CentOS7 PostgreSQL9.6安装
- postgresql9.5 安装配置和使用(on centos7)
- centos7上安装postgresql10.0 Beta2版
- centos7安装postgresql和pgadmin
- centos7 安装 nginx1.8+php5.6+postgresql9.4
- CentOS7安装并配置PostgreSQL
- CentOS7安装PostgreSQL9.6