centos 下安装postgresql
2013-01-22 12:47
337 查看
安装postgresql
直接yum安装yum install postgresql[code]若失败试试
rpm -i http://yum.postgresql.org/9.1/redhat/rhel-6-x86_64/pgdg-redhat91-9.1-5.noarch.rpm[/code]再输入yum install postgresql91-server postgresql91-contribservice postgresql-9.1 initdbchkconfig postgresql-9.1 on验证安装成功:一种:netstat -anptcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2447/postmaster第二种:su postgres 登陆是否成功。安装phppgadmin安装包 yum install php-pgsql下载[/code]phppgadmin放在var/www/html目录下重启apache service httpd restart打开localhost/phpPgAdmin查看是否安装成功打开数据库: psql -U postgres -h localhost若phppgadmin登陆不上,修改 /var/lib/pgsql/9.1/data/pg_hba.conf 最底下的 host all all 127.0.0.1/32 peer 的peer为trust安装过程轻松愉快[code]
相关文章推荐
- centos6.6下源码编译安装PostgreSQL9.5.x
- 在虚拟机(centos)配置postgresql数据库(1) - 安装篇
- CentOS 6.3下PostgreSQL 的安装与配置(rpm)
- CentOS 6.9下安装PostgreSQL
- CentOS6 在线安装PostgreSQL10
- Linux(CentOS)下Postgresql数据库的安装配置
- CentOS 6.3 Minimal yum 安装 PostgreSQL 9.2.3
- 阿里云ECS(CentOS)上安装PostgreSQL9.4
- CentOS7下使用yum安装PostgreSQL9.6
- CentOS 6.3下PostgreSQL 的安装与配置
- CentOS 7 安装、配置、使用 PostgreSQL 9.5(一)安装及基础配置
- Centos6.5 下安装PostgreSQL9.4数据库
- centos6.5 安装postgresql9.4
- centos6.5下postgresql9.4.3安装与配置
- centos 7下源码编译安装php支持PostgreSQL
- CentOS 安装 PostgreSQL 9.3
- CentOS 6.3下PostgreSQL 的安装与配置
- CentOS下安装postgresql
- [转载]centos6.3安装启动使用PostgreSQL 9.2
- Centos7 PostgreSQL安装