一、安装部署postgresql-timescaledb
apt install gnupg postgresql-common apt-transport-https lsb-release wget
二、运行postgresql存储库设置脚本
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
三、添加timescaledb第三方存储库
echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list
四、安装TimescaleDB GPG密钥
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg
五、更新您的本地存储库列表
sudo apt update
六、安装TimescaleDB
apt install timescaledb-2-postgresql-14
##备注:若要安装指定版本的timescaledb,可执行以下类似命令
apt-get install timescaledb-2-postgresql-12='2.6.0*'