Specify Default MATLAB Runtime for New Server Instances - MATLAB & Simulink (original) (raw)
Main Content
Each server instance that you create with MATLAB® Production Server™ has its own configuration file that defines various server management criteria. Use the mps-setup command to set the defaultMATLAB Runtime for all on-premises server instances that you create. Themps-setup
command line wizard searches your machine for installedMATLAB Runtime instances and sets the default path to the MATLAB Runtime for all server instances.
If you do not have MATLAB Runtime installed on your machine, you must install it first. For more information, see Supported MATLAB Runtime Versions for MATLAB Production Server.
To set the default MATLAB Runtime:
- Open a system command prompt with
administrator
privileges. - From the command prompt, navigate to the MATLAB Production Server
script
folder and runmps-setup
.
Alternatively, add thescript
folder to your systemPATH
environment variable to runmps-setup
from any folder on your system. Thescript
folder is located at_`$MPSINSTALL`_\script
, where_`$MPSINSTALL`_
is the location in which MATLAB Production Server is installed. For example, on Windows®, the default location for thescript
folder isC:\Program Files\MATLAB\MATLAB Production Server\_`ver`_\script\mps-setup
, where_ver
_ is the version of MATLAB Production Server. - Follow the instructions in the command line wizard.
The wizard searches your system for installed MATLAB Runtime instances and displays them. - Enter
y
to confirm orn
to specify a defaultMATLAB Runtime for all server instances.
Ifmps-setup
cannot locate an installed MATLAB Runtime on your system, the wizard prompts you to enter a path name to a valid instance.
Run mps-setup in Non-Interactive Mode for Silent Install
You can also run mps-setup
without interactive command input for silent installations. To do so, specify the path name of the MATLAB Runtime as a command line argument.
For example, on Windows, run the following at the system command prompt.
C:>mps-setup "C:\Program Files\MATLAB\MATLAB Runtime_mcrver_"
mcrver
is the version of the MATLAB Runtime to use.
Update MATLAB Runtime After Server Setup
If the server is already set up and you need to change or add a MATLAB Runtime version to the server, in the config/main_config
file of your server instance root, update the mcr-root property.