Install and Start MATLAB Production Server

This example shows how to install, configure, and start an instance of MATLAB® Production Server™ in an on-premise installation. The example uses the command-line for server creation, configuration and startup.

Install MATLAB Production Server

  1. Download the installer from MathWorks Downloads.

  2. Run the installer.

  3. Select MATLAB Production Server from the product list.

  4. When the installer asks where to install MATLAB Production Server, enter the name of an empty folder.

  5. Once the installation is complete, add the $MPS_INSTALL\script folder to your system PATH environment variable. $MPS_INSTALL\script represents your MATLAB Production Server installation folder.

For more information about installation options, see Install MATLAB Production Server.

Install Network License Manager

You must add your MATLAB Production Server license file to the license manager.

  1. Download the installer from MathWorks Downloads, if you do not already have it.

  2. Run the installer.

  3. When the installer prompts you to sign in, click Advanced Options > I want to install network license manager.

If your organization already has a network license manager installed, simply add the MATLAB Production Server license file to it.

For more information about installation options, see Install Network License Manager.

Install MATLAB Runtime

MATLAB Production Server requires the MATLAB Runtime. You must install the MATLAB Runtime, if you do not have it installed on your system.

  1. Download the MATLAB Runtime installer from https://www.mathworks.com/products/compiler/mcr.

  2. Run the MATLAB Runtime installer.

For more information, see Supported MATLAB Runtime Versions.

Specify the Default MATLAB Runtime

Use the mps-setup command to set the default MATLAB Runtime for all the server instances that you create.

To set the default MATLAB Runtime:

  1. Open a system command prompt with administrator privileges.

  2. Run mps-setup.

For more information, see Specify the Default MATLAB Runtime for New Server Instances.

Create a Server Instance

To create a server configuration or instance, enter the mps-new command from the system prompt. Specify the name of the server that you want to create as an argument to the mps-new command.

For example, to create a server instance with the name prod_server_1 located in C:\tmp and ro use the verbose mode, run the following on your system command prompt.

C:\tmp>mps-new prod_server_1 -v

For more information, see Create a Server.

Configure a Server Instance

After you create a new server instance, you must configure it. At a minimum, specify the following properties in the main_config server configuration file.

  • license — Specify the host and port of the license server, typically 27000@license-server-host.

  • mcr-root — Specify the path to the MATLAB Runtimes to use. You can set this property to use multiple MATLAB Runtimes. For more information, see Support Multiple MATLAB Runtime Versions.

For more information on editing main_config, see Edit the Configuration File.

Start a Server Instance

To start the server instance that you created, enter the mps-start command from the system prompt. Specify the name of the server that you want to start as an argument to the mps-start command.

For example, to start a server instance with the name prod_server_1 located in C:\tmp, run the following on your system command prompt.

C:\tmp>mps-start -C prod_server_1

For more information, see Start a Server Instance.

See Also

| | |

Related Topics