跳转到主要内容

【Linux】如何在Ubuntu 20.04上安装PostgreSQL[Quickstart]

介绍

PostgreSQL或Postgres是一个关系数据库管理系统,提供SQL查询语言的实现。它符合标准,具有许多高级功能,如可靠的事务和无读锁的并发性。

本指南演示了如何在Ubuntu 20.04服务器上快速启动和运行Postgres,从安装PostgreSQL到设置新用户和数据库。如果你更喜欢关于安装和管理PostgreSQL数据库的更深入的教程,请参阅如何在Ubuntu 20.04上安装和使用PostgreSQL。

使用DigitalOcean托管数据库简化PostgreSQL数据库的创建。几分钟内创建一个Postgres数据库,让DigitalOcean处理数据迁移、升级、维护和安全。

 

先决条件

要遵循本教程,您将需要一台Ubuntu 20.04服务器,该服务器已按照我们的Ubuntu 20.04初始服务器设置指南进行配置。完成本必备教程后,您的服务器应具有具有sudo权限的非root用户和基本防火墙。

步骤1——安装PostgreSQL

要安装PostgreSQL,首先刷新服务器的本地包索引:

【Lambda 】λ AWSsome Lambda 层

What are Lambda Layers?

Lambda Layers are a new type of artifact that can contain arbitrary code and data, and may be referenced by zero, one, or more functions at the same time. Lambda functions in a serverless application typically share common dependencies such as SDKs, frameworks, and now runtimes. With layers, you can centrally manage common components across multiple functions enabling better code reuse.