【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'
相關文章
相關標籤/搜索