更新文档

This commit is contained in:
谷成伟 2024-12-09 14:04:52 +08:00
parent 41d3be9e1a
commit 6cde84db48
3 changed files with 63 additions and 1 deletions

BIN
docs/deploy/image-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

BIN
docs/deploy/image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -60,4 +60,66 @@ cd patch
> PS. 此脚本会更改TDEngine的默认数据目录为/das/data/tddata
这样就完成了TDEngine3.3.2.13的安装。
## 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
```