Follow these instructions to set up the dashboard for an on-premises installation ofMATLAB®Production Server™.
Warning
You must have admin privileges on Windows®to complete setup.
To set up an instance of theMATLAB Production Serverdashboard:
Open a Terminal or Command Window with administrator privileges, and navigate to thedashboard
folder in theMATLAB Production Serverinstallation directory.
Platform | Default Directory Where theMATLAB Production Serverdashboard is Installed |
---|---|
Windows(Administrator) |
|
Linux® |
|
Execute the scriptmps-dashboard
with thesetup
选择,出现提示时,指定的目录or dashboard setup. You must have write privileges to the directory from where you are running themps-dashboard
script, and to the directory where the dashboard is going to be set up.
Platform | Script for Dashboard Setup |
---|---|
Windows(Administrator) |
For example: >mps-dashboard.bat setup Specify a workspace directory for MATLAB Production Server Dashboard: C:\mps\dashboard |
Linux |
For example: $./mps-dashboard.sh setup Specify a workspace directory for MATLAB Production Server Dashboard: /opt/mps/dashboard |
You receive a message acknowledging that the dashboard has been successfully setup.
Tip
To directly specify a directory when setting up the dashboard, use the-C
option after thesetup
option and provide a directory name.
For example, in Windows:>mps-dashboard.bat setup -C D:\mps\dashboard
For example, in Linux:$./mps-dashboard.sh setup -C /opt/mps/dashboard
Note
For a complete list of options that can be passed to themps-dashboard
script, pass a?
as an option to themps-dashboard
script.
For example, in Windows type:
>mps-dashboard.bat ?
在Linux中,类型:
$./mps-dashboard.sh ?
The complete list of options are as follows.
setup | start | stop | remove | reset_admin_password
Execute themps-dashboard
script with thestart
option to start the dashboard.
Platform | Script to Start Dashboard |
---|---|
Windows(Administrator) |
|
Linux |
|
You will get a message indicating the host and port where the dashboard is running. The default host and port arelocalhost
and9090
, respectively.
Tip
Windows only: To run the dashboard instance as a background process in Windows, precede themps-dashboard
script with commandstart /B
.
For example:> start /B mps-dashboard.bat start
Note
You can change the default port used by dashboard by editing the--node_server_port
option inconfig.txt
file. You can find theconfig.txt
file here:
Platform | Location of |
---|---|
Windows |
|
Linux |
|
Other customizations to the setup process can be made by editing relevant parts of theconfig.txt
file.
Open a web browser, and type the host and port number that were displayed in the previous step.
For example:
http://localhost:9090
Tip
If you see garbled text in the dashboard logs, verify that the server machine uses UTF-8 encoding. You must executemps-dashboard.bat setup
again after setting the locale.
For information about setting the locale, seeSet Locale on Microsoft Windows Platforms(MATLAB)andSet Locale on Linux Platforms(MATLAB).
To log in toMATLAB Production ServerDashboard follow this procedure:
Open a web browser, and type the host and port number that were displayed at the end of the install process.
For example:
http://localhost:9090
Type the following information at the login screen for the username and password:
Username:admin
Password:admin
You are now logged into theMATLAB Production ServerDashboard.
You can use themps-dashboard
script with the optionreset_admin_password
to change the admin password.
Platform | Script to Reset the Admin Password |
---|---|
Windows(Administrator) |
|
Linux |
|
Warning
Thereset_admin_password
option should not be executed while dashboard is still running. First, stop dashboard execution using themps-dashboard
script with thestop
option and then reset the admin password.