为什么我遇到了“MathWorks Licensing Error 96”的错误?
23 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 5 Fév 2014
Modifié(e) : MathWorks Support Team
le 10 Déc 2025 à 21:46
我想知道为什么会遇到错误:
MathWorks Licensing Error 96
A licensing error occurred while trying to use <PRODUCTNAME>.
Unable to communicate with your organization's license server or the Network License Manager has not been started.
Réponse acceptée
MathWorks Support Team
le 10 Déc 2025 à 0:00
Modifié(e) : MathWorks Support Team
le 10 Déc 2025 à 21:46
这个错误信息通常意味着无法解析License服务器的电脑名。任何连接License服务器的MATLAB客户端电脑都必须能够解析该服务器的电脑名。您可以用PING命令来测试这一功能,这需要在Windows命令行窗口执行:
- Windows 8或者8.1系统,按住Windows健启动全盘搜索,然后键入命令“cmd”
- Windows Vista或者7系统,在Start菜单的“Search programs and files"栏中,搜索命令“cmd”
- Windows XP系统,在Start菜单的Run窗口,键入命令”cmd“
- Mac OS X中,启动/Application/Utilities文件夹中的“Terminal.app”应用
在启动Windows命令行窗口后,键入以下命令:
ping <hostname>
其中<hostname>是license服务器的电脑名,就是license文件SERVER行中显示的名字。
MATLAB R2008a以及更新的版本,license文件就是$MATLAB/licenses文件夹下的network.lic文件。
MATLAB R2008a以前的版本,license文件是license.dat文件,存放在:
$MATLAB\bin\{win32|win64} (Windows操作系统)
$MATLAB/etc (其他操作系统)
其中$MATLAB指MATLAB的安装路径。
如果以上命令的返回结果是“unreachable”或者“unresolvable”,那么请联系您的系统管理员并请他们解决这个问题。如果您不能解析电脑名,但是可以ping的通服务器的IP地址,您可以把客户端的license文件中SERVER行的服务器名用IP来替换。具体的步骤如下:
1. 找到客户端的$MATLAB/licenses目录
2. 用Notepad(Windows)或者TextEdit(Mac)打开network.lic文件
3. 找到SERVER行,第二项就是服务器电脑名,用服务器的IP地址替换这一项
4. 保存文件,然后打开MATLAB确认是否能够启动
请留意,如果你的license服务器没有使用静态IP,那么当DHCP更新时,以上解决方法将不起作用。你需要联系系统管理员解决电脑名解析的问题。
如果IP可以ping通,更改network.lic文件后,MATLAB还是不能启动,有可能是电脑的防火墙屏蔽了客户端和license服务器的连接。防火墙必须打开license manager使用的两个端口。如果有防火墙,请联系系统管理员打开防火墙上的这两个端口。
关于license manager的端口使用的更多信息,请查看解决方案“ What ports does the MATLAB license manager use, and how can I set those ports?”
关于如何检测端口的更多信息,请查看解决方案“How can I check if the ports between license manager and client are blocked?”
0 commentaires
Plus de réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!