How to run app in centos server?

5 ビュー (過去 30 日間)
Jyu Chen
Jyu Chen 2023 年 3 月 24 日
コメント済み: Jyu Chen 2023 年 3 月 24 日
I producted a matlabGUI program,and I want to deploy it to the server. I know that matlab web app server can do this, but how to launch it in a server version centos? I‘ve installed matlab runtime linux version in my centos7.6

回答 (1 件)

Jack
Jack 2023 年 3 月 24 日
Great to hear that you have developed a MATLAB GUI program and want to deploy it to a server! To run your MATLAB GUI program on a server running CentOS, you can follow these steps:
  1. Install the MATLAB Runtime: As you mentioned, you have already installed the MATLAB Runtime for Linux on your CentOS 7.6 server. Make sure that you have installed the version of the MATLAB Runtime that corresponds to the version of MATLAB that you used to develop your GUI program.
  2. Copy your GUI program files to the server: Copy all of the files that are required to run your GUI program (including any dependencies) to the server. You can use a tool like scp or rsync to transfer the files.
  3. Launch the GUI program: You can launch your MATLAB GUI program on the server by running the following command in the terminal:bash
/usr/local/MATLAB/MATLAB_Runtime/v<version>/bin/matlab -nodisplay -r "run('<path-to-your-matlab-gui-file>')"
Replace <version> with the version number of the MATLAB Runtime that you installed, and replace <path-to-your-matlab-gui-file> with the path to the MATLAB GUI file that you want to run.
  1. Access the GUI program from a remote client: Once the GUI program is running on the server, you can access it from a remote client by connecting to the server using a remote desktop tool like VNC or RDP. Alternatively, you can use a web-based tool like Apache Guacamole to access the GUI program through a web browser.
I hope this helps! Let me know if you have any further questions.
  1 件のコメント
Jyu Chen
Jyu Chen 2023 年 3 月 24 日
thank you, but there is another problem that I dont have any executable file named "matlab" under the “bin” folder. I followed the steps provided by matlab Install and Configure MATLAB Runtime - MATLAB & Simulink - MathWorks 中国. Maybe I did something wrong.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by