主要内容

本页采用了机器翻译。点击此处可查看英文原文。

设置并登录 MATLAB Production Server 仪表板

按照以下说明设置、启动和登录 MATLAB® Production Server™ 本地安装的仪表板。您可以使用仪表板来创建和管理服务器实例。

设置仪表板

警告

您必须拥有 Windows® 的管理员特权才能完成设置。

  1. 以管理员特权打开终端或命令行窗口,然后导航到 MATLAB Production Server 安装目录中的 dashboard 目录。

    平台

    安装 MATLAB Production Server 仪表板的默认目录

    Windows (管理员)

    C:\Program Files\MATLAB\MATLAB Production Server\R2025b\dashboard

    Linux®

    /usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard
  2. 使用 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)

启动仪表板

  1. 使用没有管理员特权的用户帐户打开终端或命令行窗口,然后导航到 MATLAB Production Server 安装目录中的 dashboard 目录。

    要启动仪表板,建议您使用对 MATLAB Production Server 仪表板工作区目录具有写特权的最低特权用户帐户运行 mps-dashboard 脚本。

    平台

    安装 MATLAB Production Server 仪表板的默认目录

    Windows

    C:\Program Files\MATLAB\MATLAB Production Server\R2025b\dashboard

    Linux

    /usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard

  2. 使用 mps-dashboard 选项执行 start 脚本以启动仪表板。

    平台

    启动仪表板的脚本

    Windows

    mps-dashboard.bat start

    Linux

    ./mps-dashboard.sh start

    仪表板启动后,您会在终端看到一条消息,指示仪表板正在运行的主机和端口。默认主机和端口分别为 localhost9090

    提示

    仅限 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.txt

    Linux

    /usr/local/MATLAB/MATLAB_Production_Server/R2025b/dashboard/config/config.txt

    要对安装过程进行其他自定义,您可以编辑 config.txt 文件的相关部分。

  3. 打开 Web 浏览器并输入上一步中显示的主机和端口号。

    例如:

    http://localhost:9090

登录仪表板

要登录 MATLAB Production Server 仪表板,请按照以下过程操作:

  1. 打开 Web 浏览器,然后输入安装过程结束时显示的主机和端口号。

    例如:

    http://localhost:9090

  2. 在登录屏幕上输入以下信息作为用户名和密码:

    用户名:admin

    密码:admin

您现已登录到 MATLAB Production Server 仪表板。

重置管理员密码

您可以使用带有选项 mps-dashboardreset_admin_password 脚本来更改管理员密码。

平台

重置管理员密码的脚本

Windows

mps-dashboard.bat reset_admin_password

Linux

./mps-dashboard.sh reset_admin_password

警告

仪表板仍在运行时请勿执行 reset_admin_password 选项。首先,使用带有 mps-dashboard 选项的 stop 脚本停止仪表板执行,然后重置管理员密码。

另请参阅

主题