Win 7 on the environment, ThingsBoard installation and startup

First, refer to the official URL Thingsboard download and install,

The official tutorial https://thingsboard.io/docs/user-guide/install/windows/#step-2-thingsboard-service-installation

NOTES:

After the error 1, the command line into the next thingsboard directory, execute: install.bat, thingsboard can not be installed

The following error:

 

 

 

Solve 1: Log pgAdmin, create thingsboard database, execute install.bat again after a successful installation Thingsboard

 

Error 2: ThingsBoard successful installation, ThingsBoard Server Application can not be started, the system error, system error 1067 occurs

 

View the log file (thingsboard / logs / thingsboard.err.log): Unable to create virtual machines.

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized VM option 'UseCondCardMark'

Try to solve:

1, jdk own view is successfully installed and configured correctly (checked before the configuration is no problem)

2, open thingsboard / thingsboard.xml file containing the keyword " 'UseCondCardMark'" The comment line

(Or add "-XX: + IgnoreUnrecognizedVMOptions", but the method attempts, the computer does not work on I)

After trying, still does not start Thingsboard server.

3. Some programs memory setting is too large, it may exceed the scope of the virtual machine, there may be an error, you can set the size of the Java Virtual Machine

In the environment variables, add the following settings:

Global environment variable name: _JAVA_OPTIONS

Variable value: -Xmx512M

Then start thingsboard, service starts successfully

 

The final solution:

step 1: Open thingsboard.xml , a solution containing "<startargument> -XX: + UseCondCardMark </ startargument> " row annotations ;

step 2: Right-click Computer - Properties - Advanced System Settings - Advanced - Environment Variables - New System Variable, set the size of the virtual machine .

Variable name: _JAVA_OPTIONS

Variable value: -Xmx512M

After the two-step execution, Thingsboard server can start correctly.

         

 

Guess you like

Origin www.cnblogs.com/Qianwen-Li/p/11532900.html