このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
webapps-runtime
Windows、Linux、および macOS システムのコマンドラインから、MATLAB Web App Server で使用するために MATLAB ランタイム を設定します。
構文
説明
webapps-runtime list
は、現在構成されている MATLAB® ランタイム のバージョンのリストを返します。
webapps-runtime add
は、runtime_path
runtime_path
によって指定された MATLAB ランタイム インストールへのパスをサーバー構成に追加します。
webapps-runtime remove
は、サーバー構成から MATLAB Runtime インストールへのパスを削除するための対話型プロンプトを開始します。
webapps-runtime remove
は、runtime_path
runtime_path
によって指定された MATLAB ランタイム インストールへのパスをサーバー構成から削除します。
webapps-runtime [--version | -v]
は、インストールされている MATLAB Web App Server™ のバージョンを返します。
webapps-runtime [--help | -h]
はコマンドラインヘルプを返します。
例
MATLAB ランタイム インストールの一覧
サーバーで使用するために構成された MATLAB Runtime のリストを取得するには、システム コマンド ラインで次のように入力します。
webapps-runtime list
C:\Program Files\MATLAB\MATLAB Runtime\v251 /usr/local/MATLAB/MATLAB_Runtime/v251
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 (R2025a 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
入力引数
詳細
ヒント
セキュリティについての考慮事項: サーバーが R2023b より前のバージョンの MATLAB Runtime を使用するように構成されている場合、unsafe-inline
属性はサーバーのコンテンツ セキュリティ ポリシーの script-src
ディレクティブに含まれており、削除できません。この属性により、Web アプリ内に含まれるインライン JavaScript® 実行とイベント ハンドラーをサーバー上で実行できるようになります。詳細については、webapps-cspolicy
を参照してください。
バージョン履歴
R2020a で導入