https://www.postgresql.org/download/linux/ubuntu

查看系统版本

~  lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.2 LTS
Release:    18.04
Codename:   bionic

创建resource源

echo 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' > /etc/apt/sources.list.d/postgresql.list

导入key

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update

安装postgresql

sudo apt-get install -y postgresql-10 pgadmin4

安装之后

安装完毕已经启动,可以修改下密码:

sudo su - postgres
ALTER USER postgres WITH PASSWORD '新密码'; 

安装完的目录: /var/lib/postgresql/10

相关文章:

  • 2021-07-13
  • 2021-09-27
  • 2021-12-26
  • 2022-12-23
  • 2021-09-10
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2021-07-18
  • 2022-01-08
  • 2022-02-05
  • 2021-08-14
  • 2022-12-23
  • 2021-12-01
相关资源
相似解决方案