https://docs.timescale.com/latest/getting-started/installation/rhel-centos/installation-yum

1、选择系统、安装方式、PostgreSQL版本

image.png

2、yum安装支持PG11.5

yum Installation

This will install both TimescaleDB and PostgreSQL via yum (or dnf on Fedora).
Note: TimescaleDB requires PostgreSQL 9.6.3+, 10.9+, or 11.4+
**
# Download PGDG for PostgreSQL 11, e.g. for RHEL 7:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm## Follow the initial setup instructions found below:

3、
Further setup instructions are found here.
Add TimescaleDB’s third party repository and install TimescaleDB, which will download any dependencies it needs from the PostgreSQL repo:

  1. # Add our repo
  2. sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
  3. [timescale_timescaledb]
  4. name=timescale_timescaledb
  5. baseurl=https://packagecloud.io/timescale/timescaledb/el/7/\$basearch
  6. repo_gpgcheck=1
  7. gpgcheck=0
  8. enabled=1
  9. gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
  10. sslverify=1
  11. sslcacert=/etc/pki/tls/certs/ca-bundle.crt
  12. metadata_expire=300
  13. EOL
  14. sudo yum update -y
  15. # Now install appropriate package for PG version
  16. sudo yum install -y timescaledb-postgresql-11

3 Configure your database

There are a variety of settings that can be configured for your new database. At a minimum, you will need to update your postgresql.conf file to include our library in the parameter shared_preload_libraries. The easiest way to get started is to run timescaledb-tune, which is installed by default when using yum:

  1. sudo timescaledb-tune

This will ensure that our extension is properly added to the parameter shared_preload_libraries as well as offer suggestions for tuning memory, parallelism, and other settings.
To get started you’ll need to restart PostgreSQL and add a postgres superuser (used in the rest of the docs). Please refer to your distribution for how to restart services and these instructions for adding a postgres user.

TIP:Our standard binary releases are licensed under the Timescale License. This means that you can use all of our free Community capabilities and seamlessly activate Enterprise capabilities. If you want to use a version that contains only Apache 2.0 licensed code, you should install the package timescaledb-oss-postgresql-11. For more information about licensing, please read our blog post about the subject.