license
Locations for valid licenses
Syntax
--license pathList
Description
license
specifies the address of the license servers or the path to the
license files that a server instance uses. You can specify multiple license sources with
this option.
If you do not specify a value for this property, the server searches for the license files
in
, where
$MPS_INSTALL
/licenses
is the location in
which MATLAB®
Production Server™ is installed.$MPS_INSTALL
Parameters
pathList
Path to one or more license servers or license files. Separate multiple entries by the appropriate path separator for the platform. Use a colon (
:
) as the path separator for Linux® and semi-colon (;
) as the path separator for Windows®.
Examples
For on-premises server instances created using the command line, update this server configuration property in the
main_config
server configuration file.For on-premises server instances created using the dashboard and for server deployments in the cloud, use the dashboard and cloud dashboard, respectively, to update the server configuration property.
Configure Using Command Line
A Linux server looks for licenses using a license server hosted on port
27000 of hostA
and in
/opt/license/license.dat
.
In the main_config
file, set the
license
property to the following:
--license 27000@hostA --license /opt/license/license.dat
The same configuration in one line:
--license 27000@hostA:/opt/license/license.dat
A Windows server looks for licenses using a license server hosted on port
27000 of hostA
and in
c:\license\license.dat
.
In the main_config
file, set the
license
property to the following:
--license 27000@hostA --license c:\license\license.dat
The same configuration in one line:
--license 27000@hostA;c:\license\license.dat
Configure Using Dashboard
A Linux server looks for licenses using a license server hosted on port
27000 of hostA
and in
/opt/license/license.dat
.
In the dashboard, in the Settings tab of your server instance, under License, enter the following for the License property:
27000@hostA:/opt/license/license.dat
A Windows server looks for licenses using a license server hosted on port
27000 of hostA
and in
c:\license\license.dat
.
In the dashboard, in the Settings tab of your server instance, under License, enter the following for the License property:
27000@hostA;c:\license\license.dat