由于服务器无法连接外网,通过yum指令来安装PostgreSQL的可能性是零,所以需要离线安装操作。
下载离线 rpm 包:https://yum.postgresql.org/rpmchart/
由于几个rpm彼此之间的依赖关系,所以我安装的先后顺序是:rpm -ivh example.rpm
1. postgresql11-libs-11.8-1PGDG.rhel7.x86_64.rpm
2. postgresql11-11.8-1PGDG.rhel7.x86_64.rpm
3. postgresql11-server-11.8-1PGDG.rhel7.x86_64.rpm
4. postgresql11-contrib-11.8-1PGDG.rhel7.x86_64.rpm
然后就是修改PostgreSQL的配置文件: vim /DATA/postgresql/11/data/postgresql.conf 修改外部接入的白名单:vim /DATA/postgresql/11/data/pg_hba.conf 最后,通过systemctl启动PostgreSQL的systemd进程: systemctl enable postgresql-11.service systemctl start postgresql-11.service
linux postgresql 离线安装记录
标签:res 就是 file mit 可能性 lin 使用 postgresq post