CentOS6.x安装Postgresql9.6
来源:互联网 发布:unity3d 游戏版本号 编辑:程序博客网 时间:2024/06/06 13:14
CentOS6.x安装Postgresql9.6
1、配置yum源
yum install https://yum.postgresql.org/9.6/redhat/rhel-7-x86_64/pgdg-redhat96-9.6-3.noarch.rpm
2、安装pg9.6
yum install postgresql96-server postgresql96-contrib
3、初始化数据库
service postgresql-9.6 initdb
随系统启动pg
chkconfig postgresql-9.6 on
service postgresql-9.6 start
4、给root用户,赋创建数据权限
sudo -u postgres createuser root
或者切换postgres用户执行
sudo -u postgres createdb mydb
sudo -u postgres psql mapdb
5、创建数据库
createdb mydb
psql mydb
6、配置pg允许远程访问
vim /var/lib/pgsql/9.6/data/postgresql.conf
修改配置
listen_addresses = '*'
vim /var/lib/pgsql/9.6/data/pg_hba.conf
修改配置
host all all 0.0.0.0/0 md5
重启生效
service postgresql-9.6 restart
7、设置postgre用户名与密码
sudo -u postgres psql postgres
postgres-# \password postgresEnter new password: Enter it again:
阅读全文
1 0
- CentOS6.x安装Postgresql9.6
- Centos6.x安装postgresql9.3
- centos6.5 安装postgresql9.4
- centos6.5 安装postgresql9.4
- centos6.6下编译安装PostgreSQL9.4.1、配置phppgadmin
- centos6.6下编译安装PostgreSQL9.4.1、配置phppgadmin
- CentOS6.5+PostgreSQL9.5安装参考
- CentOS6使用YUM安装Postgresql9.4
- CentOS7 PostgreSQL9.6安装
- CentOS7安装PostgreSQL9.6
- postgresql9.6 安装plpython3
- Centos6.6+LNMP+PostgreSQL9.4+Symfony2
- centos7下postgresql9.6安装
- centos6.5下postgresql9.4.3安装与配置
- linux CentOS6.5安装PostgreSQL9.4.3——傻瓜笔记
- Centos6.5下用postgresql9.4.3源码安装
- ubuntu下postgreSQL9.6安装配置
- ubuntu下postgreSQL9.6安装配置
- cin输入类型与数据类型不符检查
- 幂运算(与运算)
- jsoup学习
- git新建项目第一次上传的时候出现 错误提示:fatal: remote origin already exists.
- 2017黑龙江省赛+东北地区赛总结
- CentOS6.x安装Postgresql9.6
- 随笔
- LeetCode题解(4)--Median of Two Sorted Arrays
- HowTomcatWorks学习笔记--一个简单的Servlet容器
- MySQL数据库的优化
- 双向链表和循环双向链表的一些简单操作集
- C语言学习环境搭建
- 链表面试题(十一)---求带环单链表 环的入口点
- HDU 2859 简单DP