下载安装postgresql
https://www.postgresql.org/download/linux/redhat/
- 安装rpm源
yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
- 安装客户端
yum install postgresql10
- 安装服务端
yum install postgresql10-server

本文详细介绍了在CentOS系统中安装PostgreSQL的过程,包括下载安装包,设置数据库数据目录,初始化数据库,配置远程访问以及设置默认用户名和密码。此外,还提到了如何修改配置文件以允许远程连接,并提醒用户在配置后需要重启服务。
最低0.47元/天 解锁文章
682

被折叠的 条评论
为什么被折叠?



