设置并登录 MATLAB Production Server 仪表板
按照以下说明设置、启动和登录 MATLAB® Production Server™ 本地安装的仪表板。您可以使用仪表板来创建和管理服务器实例。
设置仪表板
警告
您必须拥有 Windows® 的管理员特权才能完成设置。
以管理员特权打开终端或命令行窗口,然后导航到 MATLAB Production Server 安装目录中的
dashboard目录。平台 安装 MATLAB Production Server 仪表板的默认目录
Windows (管理员)
C:\Program Files\MATLAB\MATLAB Production Server\R2025b\dashboardLinux®
/usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard使用
mps-dashboard选项执行setup脚本,并在出现提示时指定仪表板设置的目录。您必须对安装 MATLAB Production Server 的目录以及将要设置仪表板的工作区目录具有写特权。
平台 仪表板设置脚本
Windows (管理员)
> mps-dashboard.bat setup例如:
> mps-dashboard.bat setup Specify a workspace directory for MATLAB Production Server Dashboard: C:\mps\dashboard
Linux
$ ./mps-dashboard.sh setup例如:
$ ./mps-dashboard.sh setup Specify a workspace directory for MATLAB Production Server Dashboard: /opt/mps/dashboard
您会收到一条消息,确认仪表板已成功设置。
提示
要在设置仪表板时直接指定目录,请在
-C选项后使用setup选项并提供目录名称。例如,在 Windows 命令提示符下,键入:
mps-dashboard.bat setup -C D:\mps\dashboard例如在 Linux 终端中输入:
./mps-dashboard.sh setup -C /opt/mps/dashboard注意
要查看
mps-dashboard脚本接受的选项列表,请将?作为选项传递给mps-dashboard脚本。例如,在 Windows 命令提示符下键入:
mps-dashboard.bat ?
例如,在 Linux 终端中输入:
./mps-dashboard.sh ?
完整的选项列表如下:
setup | start | stop | remove | reset_admin_password
提示
如果您在仪表板日志中看到乱码,请验证服务器计算机是否使用 UTF-8 编码。设置区域设置后,您必须再次执行 mps-dashboard.bat setup。
有关设置区域设置的信息,请参阅 设置区域设置和显示语言 (MATLAB)。
启动仪表板
使用没有管理员特权的用户帐户打开终端或命令行窗口,然后导航到 MATLAB Production Server 安装目录中的
dashboard目录。要启动仪表板,建议您使用对 MATLAB Production Server 仪表板工作区目录具有写特权的最低特权用户帐户运行
mps-dashboard脚本。平台 安装 MATLAB Production Server 仪表板的默认目录
Windows
C:\Program Files\MATLAB\MATLAB Production Server\R2025b\dashboardLinux
/usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard使用
mps-dashboard选项执行start脚本以启动仪表板。平台 启动仪表板的脚本
Windows
mps-dashboard.bat startLinux
./mps-dashboard.sh start仪表板启动后,您会在终端看到一条消息,指示仪表板正在运行的主机和端口。默认主机和端口分别为
localhost和9090。提示
仅限 Windows:要在 Windows 中将仪表板实例作为后台进程运行,请在
mps-dashboard脚本前面加上命令start /B。例如:
start /B mps-dashboard.bat start注意
您可以通过编辑
--node_server_port文件中的config.txt选项来更改仪表板使用的默认端口。您可以在此处找到config.txt文件:平台 config.txt文件的位置Windows
C:\Program Files\MATLAB\MATLAB Production Server\R2025b\dashboard\config\config.txtLinux
/usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard/config/config.txt要对安装过程进行其他自定义,您可以编辑
config.txt文件的相关部分。打开 Web 浏览器并输入上一步中显示的主机和端口号。
例如:
http://localhost:9090
登录仪表板
要登录 MATLAB Production Server 仪表板,请按照以下过程操作:
打开 Web 浏览器,然后输入安装过程结束时显示的主机和端口号。
例如:
http://localhost:9090
在登录屏幕上输入以下信息作为用户名和密码:
用户名:
admin密码:
admin
您现已登录到 MATLAB Production Server 仪表板。
重置管理员密码
您可以使用带有选项 mps-dashboard 的 reset_admin_password 脚本来更改管理员密码。
| 平台 | 重置管理员密码的脚本 |
|---|---|
Windows |
|
Linux |
|
警告
仪表板仍在运行时请勿执行 reset_admin_password 选项。首先,使用带有 mps-dashboard 选项的 stop 脚本停止仪表板执行,然后重置管理员密码。