Win10子系统Ubuntu安装Thingworx8.5--4.安装Postgresql

从更新开始... ...

sudo apt-get update

安装Postgresql

sudo apt-get install postgresql postgresql-contrib

设置Postgresql的用户名和密码

sudo -u postgres psql -c "ALTER ROLE postgres WITH 你的密码A ''"

sudo -u postgres psql -c "CREATE USER twadmin WITH 你的密码B '';"

启用PostgreSQL 监听全部连接:

在postgresql.conf 文件中,更新listen_adresses为:listen_addresses = '*'

检查postgresql.conf文件:/etc/postgresql/12/main/postgresql.conf 【我默认安装的是Postgresql 12】

.........监听地址和端口:localhost 和 5432 

检查postgresql.conf文件:/etc/postgresql/12/main/pg_hba.conf【我默认安装的是Postgresql 12】

.........地址为 127.0.0.1/32 的数据库“全部”,方法设置为 md5

------------------接下来需要配置Thingworx包含的Postgresql部分---------------------

从获取的ThingWorx-Platform-Postgres安装包中,解压看到install目录;

sudo unzip MED-61111-CD-085_SP11_ThingWorx-Platform-Postgres-8-5-11.zip

创建postgresql对应thingworx的文件夹:

sudo mkdir /ThingworxPostgresqlStorage

sudo chown postgres:postgres /ThingworxPostgresqlStorage

sudo chmod 755 /ThingworxPostgresqlStorage

进入ThingWorx-Platform-Postgres解压包的install目录:

cd install

设置 PostgreSQL 数据库和表空间:

sudo sh thingworxPostgresDBSetup.sh -a postgres -u tadmin-l /ThingworxPostgresqlStorage

将公共架构设置在安装于本地主机的 PostgreSQL 实例的数据库下:

sudo sh thingworxPostgresSchemaSetup.sh  

...............................End............................

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值