安装PostgreSQL
- 进入工具目录。
1
cd /home/tsdbtool
- 执行install命令。
1
sh tsdbtool.sh install dbtype=postgresql conf=postgresqlconf.csv sourcedir=postgresql-11.3.tar.gz
如果是RPM包安装(RPM编译过程见3.6 PostgresSQL RPM包编译)。需把sourcedir改为rpmdir,源码包名改为RPM包的名字,例如:
1
sh tsdbtool.sh install dbtype=postgresql conf=postgresqlconf.csv rpmdir=postgresql-11.3-1.el7.aarch64.rpm

数据库安装完毕即为启动状态,不用再次重复启动。
父主题: PostgreSQL自动化部署操作指导