This example shows how to install, configure, and start an instance of MATLAB® Production Server™.
To start a MATLAB Production Server instance:
To install MATLAB Production Server:
Run the installer.
Select License Manager for installation in the product list.
When asked where to install MATLAB Production Server, enter the name of an empty folder.
You need the path to the installation to complete the tutorial.
Add the
folder
to your system $MPS_INSTALL
\scriptPATH
environment variable.
$MPS_INSTALL
represents your MATLAB Production Server installation
folder.
If it is not already installed on your system, you must install the MATLAB Runtime. MATLAB Production Server requires the MATLAB Runtime.
To install a MATLAB Runtime:
Download the MATLAB Runtime installer from http://www.mathworks.com/products/compiler/mcr.
Run the MATLAB Runtime installer.
After you create a new server instance, you must configure it.
The MATLAB Production Server configuration file, main_config
,
includes many parameters you can use to tune server performance. At
a minimum, you must use the file to specify the location of the MATLAB Runtime
you want to use with the server instance
To configure the server instance's default MATLAB Runtime:
From the system command line, run mps-setup
.
Follow the directions to specify which MATLAB Runtime the server instances uses.
For more information about configuration options, see Edit the Configuration File.
To create the server instance:
Move to the folder where you want to create your server.
Run the mps-new
command.
C:\tmp>mps-new prod_server_1 -v
Verify the output.
prod_server_1/.mps_version...ok prod_server_1/config/main_config...ok prod_server_1/auto_deploy/...ok prod_server_1/log/...ok prod_server_1/pid/...ok prod_server_1/old_logs/...ok prod_server_1/.mps_socket/...ok prod_server_1/endpoint/...ok
For more information on these folders, see Server Diagnostic Tools.
To start the server:
Run the mps-start
command.
mps-start -C C:\tmp\prod_server_1
Verify the server instance has started using the mps-status
command.
mps-status -C C:\tmp\prod_server_1
'C:\tmp\prod_server_1' STARTED license checked out