Main Content

このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。

webapps-runtime

WindowsLinux、および macOS システムのコマンドラインから MATLAB Web App Server で使用するために MATLAB ランタイム を設定します。

R2020a 以降

説明

webapps-runtime list は、MATLAB® Runtime の現在構成されているバージョンのリストを返します。

webapps-runtime add runtime_path は、runtime_path によって指定された MATLAB Runtime インストールへのパスをサーバー構成に追加します。

webapps-runtime remove は、サーバー構成から MATLAB Runtime インストールへのパスを削除するための対話型プロンプトを開始します。

webapps-runtime remove runtime_path は、runtime_path によって指定された MATLAB Runtime インストールへのパスをサーバー構成から削除します。

webapps-runtime [--version | -v] はインストールされている MATLAB Web App Server™ のバージョンを返します。

webapps-runtime [--help | -h] はコマンドラインヘルプを返します。

MATLAB ランタイム インストールの一覧

サーバーで使用するために構成された MATLAB Runtime のリストを取得するには、システム コマンド ラインで次のように入力します。

webapps-runtime list
C:\Program Files\MATLAB\MATLAB Runtime\v241
/usr/local/MATLAB/MATLAB_Runtime/v241

MATLAB ランタイム パスを追加

MATLAB Runtime インストールへのパスをサーバー構成に追加するには、システム コマンド ラインで次のように入力します。

webapps-runtime add "C:\Program Files\MATLAB\MATLAB Runtime\v98"
MATLAB Runtime configuration updated. Changes will be applied the next time the server is started.

MATLAB ランタイム パスを削除します

サーバー構成から MATLAB Runtime インストールへのパスを削除するには、システム コマンド ラインで次のように入力します。

webapps-runtime remove "C:\Program Files\MATLAB\MATLAB Runtime\v98"
MATLAB Runtime configuration updated. Changes will be applied the next time the server is started.

MATLAB Web App Server のバージョンを取得

インストールされている MATLAB Web App Server のバージョンを取得するには、システム コマンド ラインで次のように入力します。

webapps-runtime --version
MATLAB Web App Server (R2024a Release)

コマンドラインヘルプを取得する

現在のコマンドのヘルプを取得するには、システム コマンド ラインで次のように入力します。

webapps-runtime --help
Usage:
  webapps-runtime -h [ --help ]          Display this help message
  webapps-runtime -v [ --version ]       Display the version of MATLAB Web App Server
  webapps-runtime list                   Lists currently configured MATLAB Runtimes
  webapps-runtime add <runtime-path>     Adds runtime-path to the MATLAB Runtime configuration
  webapps-runtime remove                 Launch interactive prompt to remove MATLAB Runtimes 
                                         from the from the MATLAB Runtime configuration
  webapps-runtime remove <runtime-path>  Removes runtime-path from the MATLAB Runtime configuration

入力引数

すべて折りたたむ

サーバー構成に追加する、またはサーバー構成から削除する MATLAB Runtime インストールへのパスを指定します。

例: "C:\Program Files\MATLAB\MATLAB Runtime\R2024a"

詳細

すべて折りたたむ

MATLAB Web App Server コマンドライン スクリプトの場所

コマンドライン スクリプトは、MATLAB Web App Server インストール フォルダー内の script フォルダーにあります。たとえば、R2024a のデフォルトの場所は次のとおりです。

オペレーティング システムコマンド ライン スクリプトの既定の場所

Windows® "(管理者)"

C:\Program Files\MATLAB\MATLAB Web App Server\R2024a\script

Linux® "(sudo)"

/usr/local/MATLAB/MATLAB_Web_App_Server/R2024a/script

macOS (Intel® プロセッサ) (sudo)

/Applications/MATLAB/MATLAB_Web_App_Server/R2024a/script

バージョン履歴

R2020a で導入