【Linux】安装 PostgreSQL

参考:linux

  CSDN1:https://blog.csdn.net/ctwy291314/article/details/79900074sql

一、进入 PostgreSQL 官网的下载地址数据库

 

二、选择下面的安装流程,由于我这里是 CentOS 7系统,因此选择的是 Red Hatpost

 

 三、选择后,在红色框下面选择 想要安装的版本号spa

  (a)、repository RPM 是什么,点击下面两个链接
      Linux公社1:https://www.linuxidc.com/Linux/2013-03/81587.htm.net

      CSDN1:https://blog.csdn.net/xfxfxfxfxf666/article/details/80632417postgresql

 

四、能够经过下面的命令查看是否启动了code

netstat -a | grep PGSQ

 

五、链接数据库htm

  (a)、先切换到数据库用户blog

su - postgres

  (b)、登陆数据库

psql

  (c)、查看 用户角色 

\du 或者 \du+

  (d)、修改用户 postgres 的密码

alter role postgres with password 'postgres'
相关文章
相关标签/搜索