flexnet许可证服务器_ANSYS FlexNet Licensing not running的一种解决方法
ANSYS真是一款讓人歡喜讓人憂,又貴又糟心的軟件!安裝比較復雜不說,就是在成功安裝之后,日常使用過程中,也會有時不時地無法啟動的情況。
這幾天我電腦的ANSYS就遇到了FlexNet Licensing not running的問題,這可是一個老大難,用了幾天的空閑時間琢磨并最終解決了,記在這里,或許對其他朋友也有用——不好意思的是,我在解決問題的過程中并沒有想到要寫教程,所以沒有截圖,這里就用純文字說明了,見諒。
問題描述
ANSYS無法啟動,提示信息包括許可證服務器無法啟動,或者提到“request name XXXX does not exist in the licensing pool”。
打開ANSYS License Management Center,發現Licensing Interconnect: running ;Licensing Interconnect Monitor: running,只有FlexNet Licensing沒有啟動。
通過查看點擊查看View FlexNet Debug Log,見到錯誤信息為:
(lmgrd) SLOG: Summary LOG statistics is enabled.
(lmgrd) The TCP port number in the license, 1055, is already in use.
(lmgrd) Possible causes:
(lmgrd) 1) The license server manager (lmgrd) is already running for this license.
(lmgrd) 2) The OS has not "cleared" this port since lmgrd died.
(lmgrd) 3) Another process is using this port number (unlikely).
(lmgrd) Solutions:
(lmgrd) 1) Make sure lmgrd and all vendor daemons for this
(lmgrd) license are not running.
(lmgrd) 2) You may have to wait for the OS to clear this port.
(lmgrd) Retrying for about 5 more minutes
(lmgrd) Still trying...
(lmgrd) Still trying...
(lmgrd) Still trying...
(lmgrd) Failed to open the TCP port number in the license.
可能的原因
根據程序給出的錯誤提示信息,判斷是許可證服務器出現了問題,不需要進行ANSYS的重新安裝,頂多就是重安裝許可證服務器而已。
可能原因1:端口占用
是不是有其他程序占用了1055端口呢?
利用命令查詢1055端口對應的進程:netstat -ano | findstr "1055"
然后查詢對應PID的進程名:tasklist | findstr "11892" (11892為進程pid)
通常來講,極少遇到其他程序占用1055端口的情況,尤其如果看到netstat結果顯示TCP地址只有0.0.0.0的時候(而不是127.0.0.1),說明許可證服務器自身出了問題。
可能原因2:License過期
重新生成License.txt,并重新導入,重啟,未解決問題。
可能原因3:環境變量
經查詢,丟失了環境變量:ANSYSLMD_LICENSE_FILE=1055@hostname
設置后重啟,未解決問題。
最后的辦法:重裝許可證服務器
在試了幾乎所有能找到的方法均未果后,想到了最后的辦法,那就是重裝License?server。
然而,這個操作也是很講究的。如果只是重新覆蓋安裝許可證服務器程序,則問題會依舊;如果將程序安裝目錄下的Shared Files目錄刪掉(前提是在任務管理器中終止ANSYS相關進程),則問題大概還會存在;如果在注冊表中刪除與ANSYS有關的項,尤其與系統服務相關的那幾項,還可能導致無法重裝許可證服務器的悲劇(因此刪除注冊表中項目之前的備份就很重要了)……
正確地操作在這里:
打開任務管理器,終止掉與ANSYS有關的進程;
以管理員身份打開CMD窗口,進入C: \ Program Files \ Ansys Inc \ Shared Files \ Licensing \ winx64 目錄中,運行命令:ansysli_server.exe -k uninstall,刪除server服務;
重啟
刪除Shared Files目錄,再重啟
重新安裝許可證服務器
如上操作,我重裝了許可證服務器,重新導入License之后,一切恢復正常!
總結
以上是生活随笔為你收集整理的flexnet许可证服务器_ANSYS FlexNet Licensing not running的一种解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GitHub常见开源协议
- 下一篇: VC2017下开发ATL程序注意事项