apt安装

This will install both TimescaleDB ​AND​ PostgreSQL 9.6 via ​apt​

通过apt安装TimescaleDB和PostgreSQL 9.6

必备条件

  • Ubuntu 16.04 或更新版本

Build & Install

WARNING:If you have another PostgreSQL installation not via ​apt​, this will likely cause problems. If you wish to maintain your current version of PostgreSQL outside of ​apt​, we recommend installing from source. Otherwise please be sure to remove non-​apt​ installations before using this method.

注意:如果你已经安装了其他版本的PostgreSQL,按照以下步骤操作将会出现问题。如果你想保留PostgreSQL的当前版本,建议你从源source行安装。如果不想保留当前版本的话,操作以下步骤之前请卸载非apt的安装版本。

# Add our PPA
sudo add-apt-repository ppa:timescale/timescaledb-ppa
sudo apt-get update
# To install
sudo apt install timescaledb

更新Postgresql.conf

Also, you will need to edit your ​postgresql.conf​ file to include necessary libraries:

此外,你需要编辑​postgresql.conf​文件增加必要的库。

# Modify postgresql.conf to uncomment this line and add required libraries.
# 修改postgresql.conf文件去掉这一行的注释
# For example:
# 例如:
shared_preload_libraries = 'timescaledb'

TIP:The usual location of ​postgres.conf​ is ​/etc/postgresql/9.6/main/postgresql.conf​ but this may vary depending on your setup.

提示:一般​postgres.conf​ 文件路径为/etc/postgresql/9.6/main/postgresql.conf​,但是设置方式不同,路径也会有所不同。

To get started you'll now need to restart PostgreSQL and add a ​postgres​ superuser (used in the rest of the docs):

开始之前需要重启PostgreSQL并且添加一个postgres超级用户(在其他docs中使用的)

# Restart PostgreSQL instance
# 重启PostgreSQL实例
sudo service postgresql restart

# Add a superuser postgres:
createuser postgres -s

​Next we will ​setup the database​, either with an empty hypertable, or by migrating data from another source​

接下来,设置数据库,可以使用一个空的hypertable,也可以从另一个数据库中迁移数据。

局限性

For a list of currently known limitations, please see our Github page:

局限性详见Github

  • ​Github issues​

results matching ""

    No results matching ""