安装教程官方地址:https://www.postgresql.org/download/linux/redhat/

CentOS7 yum 安装 PostgreSQL

1. 选择PostgreSQL版本;

2. 选择要安装的平台;

3. 选择32位还是64位;

4. 复制安装RPM;

yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm

5. 直接安装服务器端;

yum install postgresql10-server

6. 初始化数据库并将postgresql注册为自己启动;

/usr/pgsql-10/bin/postgresql-10-setup initdb
systemctl enable postgresql-10
systemctl start postgresql-10

 

PostgreSQL的默认数据库路径为: /var/lib/pgsql/10/data

 

 

参考链接: https://www.jianshu.com/p/d26ae43446a2

 

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-02-01
  • 2022-03-03
  • 2021-06-27
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-08-14
  • 2022-01-08
  • 2021-06-26
  • 2022-12-23
  • 2021-09-03
  • 2021-12-22
相关资源
相似解决方案