更新文档
This commit is contained in:
parent
41d3be9e1a
commit
6cde84db48
BIN
docs/deploy/image-1.png
Normal file
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
BIN
docs/deploy/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
@ -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`,修改为
|
||||

|
||||
|
||||
修改数据监听端口,编辑文件`/das/data/pgdata/postgresql.conf`,修改为
|
||||

|
||||
|
||||
### 服务自启
|
||||
```shell
|
||||
systemctl enable postgresql
|
||||
```
|
||||
|
||||
### 数据库初始化
|
||||
|
||||
```shell
|
||||
su - postgres
|
||||
|
||||
|
||||
```
|
Loading…
Reference in New Issue
Block a user