TimescaleDB数据库建立在PostgreSQL基础上

安装:postgresql
https://www.postgresql.org/download/

1.直接TimescaleDB数据库,这个时候会提示你,如果没有安装过postgresql ,则会让你安装
https://docs.timescale.com/timescaledb/latest/how-to-guides/install-timescaledb/self-hosted/

安装好后启动
启动:service postgresql start

2.安装pgadmin,选择下载windows版本提供桌面应用程序的postgresql接入
或者安装navicat:https://www.navicat.com.cn/download/navicat-for-postgresql
navicat收费的需要破解或者购买
在这里插入图片描述
以下2个地址都可以下载
https://www.postgresql.org/ftp/
https://www.pgadmin.org/download/

注意:
pg_hba.conf中必须要添加一行

host    all             all             0.0.0.0/0              password

postgresql.conf中修改为如下

listen_addresses = '*'          # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost'; use '*' for all

最后重启即可

数据库操作:
PostgreSQL

文档参考:https://www.postgresql.org/docs/13/index.html
版本查询:psql --version
命令行cli登入:psql -U postgres -h localhost
重启命名:service postgresql restart
连接TimescaleDB:psql -U postgres -h localhost -d tutorial

查看运行端口:netstat -a | grep PGSQL
posted @ 2021-09-17 16:00  小小白兔兔  阅读(140)  评论(0编辑  收藏  举报