How to run app in centos server?

3 次查看(过去 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 CenterFile Exchange 中查找有关 MATLAB Web App Server 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by