How do I uninstall and reinstall the MathWorks Service Host?

3,389 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-10-18
The MathWorks Service Host is a critical required part of the MathWorks software installed on your machine. If you encounter startup issues, uninstalling and reinstalling the MathWorks Service Host may resolve these issues. Follow the workflow below.

 

Note: MATLAB itself should not be uninstalled and reinstalled when performing the workflows below.

 

1. Shut Down MATLAB 
We first need to close out any MATLAB sessions; please save your work and shutdown MATLAB before proceeding.

 

2. Uninstall the MathWorks Service Host
Run the following operating system commands to end the MathWorksServiceHost process and delete its installation directories.

 

Windows 
Open Command Prompt by searching for it from the Windows Start menu. Then, run each of these commands one at a time: 
Taskkill /IM MathWorksServiceHost.exe /F rd /s /q %localappdata%\MathWorks\ServiceHost %localappdata%\MathWorks\MATLABConnector

 

macOS
Open the Terminal app by searching for it in Spotlight Search. Spotlight Search is the magnifying glass in the top-right corner of your macOS screen. Then, run each of these commands one at a time: 
killall MathWorksServiceHost  rm -rf ~/Library/Application\ Support/MathWorks/ServiceHost ~/Library/Application\ Support/MathWorks/MATLABConnector

 

Linux 
Open a terminal window. The way to open a terminal window depends on your Linux distribution. Then, run each of these commands one at a time:
killall MATLAB MathWorksServiceHost  rm -rf ~/.MathWorks/ServiceHost ~/.MATLABConnector 

 

3. Reinstall the MathWorks Service Host
For all operating systems, perform these steps:
  1. Download the latest MATLAB Connector Installer from this link: Install MATLAB Connector 
  2. Run the downloaded file and wait for the installer to finish installing MathWorks Service Host. If you are prompted to setup MATLAB Connector, unless you plan to use MATLAB Drive, you may quit this window.
  3. To see if your issue has been resolved, try starting MATLAB.
If you are still running into errors after trying the above, Contact Support

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by