diff --git a/docs/deploy/image-1.png b/docs/deploy/image-1.png new file mode 100644 index 00000000..a411a4bb Binary files /dev/null and b/docs/deploy/image-1.png differ diff --git a/docs/deploy/image.png b/docs/deploy/image.png new file mode 100644 index 00000000..a32cc3d8 Binary files /dev/null and b/docs/deploy/image.png differ diff --git a/docs/deploy/tdengine3.md b/docs/deploy/tdengine3.md index 25164801..660de79e 100644 --- a/docs/deploy/tdengine3.md +++ b/docs/deploy/tdengine3.md @@ -60,4 +60,66 @@ cd patch > PS. 此脚本会更改TDEngine的默认数据目录为/das/data/tddata -这样就完成了TDEngine3.3.2.13的安装。 \ No newline at end of file +## TDEngine3启停 + +```sh +systemctl start taosd + +systemctl stop taosd + +systemctl restart taosd +``` + +### 开机自启 + +```shell +systemctl enable taosd +``` + +### + +这样就完成了TDEngine3.3.2.13的安装。 + +## PostgreSQL 安装配置 + +```shell +yum install postgresql-server -y +mkdir /das/data/pgdata +chown postgres:postgres /das/data/pgdata +```` + +### 修改数据文件位置 +编辑`/usr/lib/systemd/system/postgresql.service`文件 + +将PGDATA改为下面的内容 +```systemdS +Environment=PGDATA=/das/data/pgdata +``` + +### 初始话数据库 + +```shell +postgresql-setup initdb +systemctl start postgresql +``` + +### 配置文件修改 + +修改访问权限配置, 编辑文件`/das/data/pgdata/pg_hba.conf`,修改为 +![alt text](image.png) + +修改数据监听端口,编辑文件`/das/data/pgdata/postgresql.conf`,修改为 +![alt text](image-1.png) + +### 服务自启 +```shell +systemctl enable postgresql +``` + +### 数据库初始化 + +```shell +su - postgres + + +``` \ No newline at end of file