Follow the procedure below to create a server in an on-premise installation of MATLAB® Production Server™.
Before creating a server, ensure you have:
script folder to your system
PATH environment variable. Doing so enables you to run
server commands such as
mps-new from any folder on your
You can run server commands from the
The script folder is located at
$MPS_INSTALL is the location where
Production Server is installed. For example, on Windows, the default location
C:\Program Files\MATLAB\MATLAB Production
ver is the version of MATLAB
Before you can deploy your MATLAB code with MATLAB Production Server, you need to create a server to host your deployable archive.
A server instance is considered to be one unique configuration
of the MATLAB
Production Server product. Each configuration has
its own parameter settings file (
main_config) as well as its own set
of diagnostic files.
To create a server configuration or instance:
From the system command prompt, navigate to where you want to create your server instance.
mps-new command from the system
mps-new [path/]server_name [-v]
path is the path to the server
instance and configuration you want to create for use with the
Production Server product. When specifying a path, ensure the path
ends with the
If you are creating a server instance in the current folder, you do not need to specify a full path. Only specify the server name.
server_name — is the name of
the server instance and configuration you want to create.
-v — enables verbose output, giving
you information and status about each folder created in the