CentOS7.2 安装postgresql数据库
来源:互联网 发布:阿里云飞天分布式系统 编辑:程序博客网 时间:2024/05/17 07:03
1. 安装核心数据库服务及额外支持模块
yum install postgresql-server
2.初始化数据库,并加入开机启动服务
service postgresql initdb 初始化数据库
chkconfig postgresql on 或者 systemctl enable postgresql.service 加入开机启动
systemctl start postgresql.service 启动服务
3. 修改配置文件,使的可以远程。
ps -ef | grep postgres 查看postgres进程
可以看到这一条 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432
进入该目录
cd /var/lib/pgsql/data
修改文件postgresql.conf,确保存在
listen_addresses = '*'
port = 5432
修改文件pg_hba.conf
增加host all all 0.0.0.0 0.0.0.0 md5
4. 重启服务
systemcrl restart postgresql.service
0 0
- CentOS7.2 安装postgresql数据库
- centos7 安装redmin3.3.0+postgresql数据库
- CentOS7上安装PostgreSQL
- Centos7 PostgreSQL安装
- Centos7 PostgreSQL安装
- CentOS7下PostgreSQL安装
- Centos7 PostgreSQL安装
- Centos7 PostgreSQL安装
- centos7 安装postgresql-9.5
- CentOS7安装、配置PostgreSQL
- centos7源码安装postgresql
- centos7 安装PostgreSQL
- Centos7安装postgresql
- centos7安装postgresql和pgadmin
- Centos7下安装postgresql-9.5
- CentOS7安装并配置PostgreSQL
- 基于CentOS7开发之路 --- 第四章 :CentOS 7 安装 postgresql 9.5.0 数据库
- PostgreSQL--安装数据库
- 代理http请求获取客户端IP
- hadoop2.x常用端口、定义方法及默认端口、hadoop1.X端口对比
- WebDriver打开firefox浏览器崩溃问题解决方法
- 批处理命令forfiles语法的实例详解
- 取得硬盘剩余空间的Java代码(未测试)
- CentOS7.2 安装postgresql数据库
- windows安装mysql5.7zip版方法
- c++ this指针
- ANDROID开机动画bootanimation.zip的详细制作方法
- phoenix建表列名重复,导致无法删除表格且修改,插入数据。
- POI读取EXCEL下xlsx,xls文件
- PAT乙级 1009 说反话
- 遍历python字典几种方法
- 技术人生的规划