一、环境简介
序号 项目 具体内容
1 操作系统环境 RedHat Enterprise 6.8 x86_64
2 PostgreSQL版本 11.4
3 空间大小 本地磁盘:300G,安装目录30GB,数据目录12
0GB,均使用lvm进行管理,方便后期扩展
4 网络分配 192.168.129.145
本文安装过程,主要是通过源码,在linux平台进行PostgreSQL数据库的安装部署,操作系统则以minimal的模式进行安装。
二、获取源码
通过官网 ,下载postgresql 11.4版本的源码包:https://www.postgresql.org/ftp/source/v11.4/
三、安装要求检查:
3.1 关闭操作系统防火墙及安全沙盒
[root@postgresql~]# service iptables stop
[root@postgresql~]# chkconfig iptables off
[root@postgresql~]# vi /etc/selinux/config
将enable改为disabled
3.2 操作系统GUN版本要求:
GUN make版本要求在3.80及以上,我们可以通过以下命令查看GUN的版本:
[root@postgresql~]# make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for x86_64-redhat-linux-gnu
评论