# Activation
DBAPI binds with hardware, a license required on each machine
# Get the serial number
DBAPI automatically exits on the first start and the serial number is printed at the end of the log file before exit. So you must start it once to get the serial number.
For standalone mode deployment, get the serial number at the end of the
logs/dbapi-standalone.log
file. For cluster deployment, get the serial number at the end of thelogs/dbapi-apiServer.log
file for each machine
# Apply for a license
- Visit https://support.51dbapi.com/#/free (opens new window) to apply for a free license of personal edition
- Fill in your serial number and email address, click Submit, and the license will be sent to you by email
For cluster deployment, each machine has a serial number, and each machine requires a license
Access https://support.51dbapi.com/#/license (opens new window) to apply for a paid license of personal edition
Access https://support.51dbapi.com/#/enterprise/license (opens new window) to apply for a paid license of enterprise edition
# Use the license
- Fill the license in the
conf/key.properties
file in your installation directory
In the case of cluster mode, the License of each serial number should be filled in the
conf/key.properties
file under the corresponding machine node
license=xxxxxx
- Restart the DBAPI right now
the startup script of standalone mode
sh bin/dbapi-daemon.sh start standalone
windows System, please right-click on the
bin/dbapi.ps1
file, and clickrun with PowerShell
startup script of cluster mode
sh bin/start-all.sh