从创建文件夹开始... ...
创建 ThingworxPlatform 文件夹并作为系统变量:
sudo mkdir /ThingworxPlatform
编辑/etc/profile文件,添加:
export THINGWORX_PLATFORM_SETTINGS=/ThingworxPlatform
创建建 /ThingworxStorage ,/ThingworxBackupStorage文件夹:
sudo mkdir /ThingworxStorage /ThingworxBackupStorage
更新文件夹访问权限:
sudo chown tomcat8.5:tomcat8.5 /ThingworxStorage /ThingworxBackupStorage /ThingworxPlatform
sudo chmod 775 /ThingworxStorage /ThingworxBackupStorage /ThingworxPlatform
将MED-61111-CD-085_SP11_ThingWorx-Platform-Postgres-8-5-11文件夹下的Thingworx.war移至 $CATALINA_HOME/webapps
sudo mv Thingworx.war $CATALINA_HOME/webapps
sudo chown tomcat8.5:tomcat8.5 $CATALINA_HOME/webapps/Thingworx.war
sudo chmod 775 $CATALINA_HOME/webapps/Thingworx.war
将MED-61111-CD-085_SP11_ThingWorx-Platform-Postgres-8-5-11文件夹下的platform-settings.json放到/ThingworxPlatform下:
sudo cp platform-settings.json /ThingworxPlatform/
配置管理员密码:【密码必须14位及以上】
{
"PlatformSettingsConfig": {
"AdministratorUserSettings": {
"InitialPassword": "<changeme>"
}
}
}
配置扩展是否可用:【可以都设置为true】
"ExtensionPackageImportPolicy": {
"importEnabled": false,
"allowJarResources": false,
"allowJavascriptResources": false,
"allowCSSResources": false,
"allowJSONResources": false,
"allowWebAppResources": false,
"allowEntities": false,
"allowExtensibleEntities": false
},
配置许可:【情况1:在线】
"LicensingConnectionSettings":{
"username":"PTC Support site user name",
"password":"PTC Support site password"
}
【情况2:离线】
离线需要登陆技术支持网站,下载可用的license文件。
并将license文件重命名为:license_capability_response.bin,放在/ThingworxPlatform文件夹下。
-------------End-----------
启动Tomcat,浏览器输入http://localhost:8080/Thingworx即可,输入用户名:Administrator,密码:配置在json中的密码。