解压压缩包
tar xvf cmake-3.28.1-linux-x86_64.tar
将cmake 添加到profile中
vi ~/.bash_profile
export PATH=/home/postgres/app/cmake-3.28.1-linux-x86_64/bin:$PATH
保存,执行
source ~/.bash_profile
下载timescaledb安装包并解压
./bootstrap
cd ./build & make
make install
在数据库启动时自动加载timescale lib库
vi postgresql.conf
shared_preload_libraries = 'timescaledb'
pg_ctl -D /home/postgres/data/9700 restart
create extension timescaledb ;