[root@weianvrgv /]#yum install postgresql*
切换用户
[root@weianvrgv /]#su - postgres
初始化
/usr/bin/postgresql-setup initdb
退出 postgres 用户
exit
编辑数据库配置文件
[root@weianvrgv /]#vi /var/lib/pgsql/data/postgresql.conf
listen_addresses = ‘*‘
[root@weianvrgv /]#vi /var/lib/pgsql/data/pg_hba.conf
大约在83行添加
host all all 0.0.0.0/0 md5
启动数据库
[root@weianvrgv /]#systemctl restart postgresql
切换用户
[root@weianvrgv /]#su - postgres
登录数据库
[postgres@weianvrgv ~]$psql
修改 postgres 密码
ALTER USER postgres WITH PASSWORD ‘postgres‘;
退出
\q
退出 postgres 用户
[postgres@weianvrgv ~]$exit
重启数据库
[root@weianvrgv /]#systemctl restart postgresql
现在 PostgreSQL 数据库可以远程登录,用户名: postgres 密码: postgres
yum方式安装ARM架构PostgreSQL10数据库
标签:中文字符集 core lin 编辑 tar cal 文字 pos 修改
查看更多关于yum方式安装ARM架构PostgreSQL10数据库的详细内容...