centos 操作系统 安装 postgresql-9.4 postgresql-9.3
2015-12-16 11:44
639 查看
centos 为rhel 的开源代码编译版本,不需要技术支持的话,可以使用这个版本。
安装 postgresql 有两种方法,如果服务器可以直接连接网络,推荐使用yum 直接安装的方式,省时省力。
本文介绍 yum 安装方法。
首先安装 postgresql 安装库,默认的yum 仓库中保存的 postgresql 不是最新版本。
centos 7 系列安装
centos 6 系列安装
执行安装
安装 postgresql -9.3
安装pgpool
centos 6 安装 postgresql 9.3
修改数据库时区
安装 postgresql 有两种方法,如果服务器可以直接连接网络,推荐使用yum 直接安装的方式,省时省力。
本文介绍 yum 安装方法。
首先安装 postgresql 安装库,默认的yum 仓库中保存的 postgresql 不是最新版本。
centos 7 系列安装
yum install http://yum.postgresql.org/9.4/redhat/rhel-7-x86_64/pgdg-redhat94-9.4-2.noarch.rpm
centos 6 系列安装
yum install http://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-redhat94-9.4-2.noarch.rpm
执行安装
yum install postgresql94-server postgresql94-contrib
安装 postgresql -9.3
yum install http://yum.postgresql.org/9.3/redhat/rhel-7-x86_64/pgdg-centos93-9.3-2.noarch.rpm yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-2.noarch.rpm yum install postgresql93-server postgresql93-contrib /usr/pgsql-9.3/bin/postgresql93-setup initdb systemctl enable postgresql-9.3.service systemctl start postgresql-9.3.service
安装pgpool
yum install pgpool
centos 6 安装 postgresql 9.3
yum install http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-centos93-9.3-2.noarch.rpm yum install postgresql93-server postgresql93-contrib
修改数据库时区
相关文章推荐
- Linux下eclipse与Hadoop配置
- Centos 6.7 安装RStudio server遇到的问题总结
- CentOS 7升级内核版本后VirtualBox无法启动问题
- Linux Qt工程组织结构与动态库引用总结
- 在阿里云的CentOS环境中安装配置MySQL的教程
- centos虚拟机移动之后,可能会发生网卡无法启动的情况
- PPT分享: Linux启动流程 关于initrd与initramfs的区分及其发展历程
- linux 磁盘操作
- linux中阻塞和非阻塞的区别
- Linux 常见文件及目录解析1.0(运维人员必看)
- linux中终端控制键Ctrl+C,Ctrl+Z,Ctrl+D的使用场合
- Linux下DHCP服务器搭建
- Java开发必会的Linux命令
- linux下的DES加密
- Unix/Linux文件系统剖析
- Linux的bg和fg命令简单介绍
- 获取kprobes嗅探的函数参数
- Linux常用命令集合
- Linux进程间通信——使用共享内存
- Linux虚拟文件系统VFS解决