Linux(Redhat 7.6)安装PG(Postgresql 9.6.0)
需要在Linux上安装postgres数据库,指定安装目录,简单测试各种配置。安装包下载地址:
//源码 https://github.com/postgres/postgres/releases //二进制 https://www.enterprisedb.com/download-postgresql-binaries //官网 https://www.postgresql.org/
本次测试使用的版本安装包是【postgresql-9.6.0.tar.gz】
查看本地yum源
[root@mm2020 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 42G 4.0G 38G 10% / devtmpfs 1.9G 0 1.9G 0% /dev tmpfs 1.9G 4.0K 1.9G 1% /dev/shm tmpfs 1.9G 13M 1.9G 1% /run tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup /dev/sda1 497M 166M 332M 34% /boot tmpfs 378M 44K 378M 1% /run/user/0 /dev/sr0 4.2G 4.2G 0 100% /run/media/root/RHEL-7.6 Server.x86_64 [root@mm2020 ~]# yum repolist Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. repo id repo name status !oel6 OEL6.5 5,152 repolist: 5,152