flexnet许可证服务器_ANSYS FlexNet Licensing not running的一种解决方法
ANSYS真是一款讓人歡喜讓人憂,又貴又糟心的軟件!安裝比較復(fù)雜不說,就是在成功安裝之后,日常使用過程中,也會有時不時地?zé)o法啟動的情況。
這幾天我電腦的ANSYS就遇到了FlexNet Licensing not running的問題,這可是一個老大難,用了幾天的空閑時間琢磨并最終解決了,記在這里,或許對其他朋友也有用——不好意思的是,我在解決問題的過程中并沒有想到要寫教程,所以沒有截圖,這里就用純文字說明了,見諒。
問題描述
ANSYS無法啟動,提示信息包括許可證服務(wù)器無法啟動,或者提到“request name XXXX does not exist in the licensing pool”。
打開ANSYS License Management Center,發(fā)現(xiàn)Licensing Interconnect: running ;Licensing Interconnect Monitor: running,只有FlexNet Licensing沒有啟動。
通過查看點(diǎn)擊查看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.
可能的原因
根據(jù)程序給出的錯誤提示信息,判斷是許可證服務(wù)器出現(xiàn)了問題,不需要進(jìn)行ANSYS的重新安裝,頂多就是重安裝許可證服務(wù)器而已。
可能原因1:端口占用
是不是有其他程序占用了1055端口呢?
利用命令查詢1055端口對應(yīng)的進(jìn)程:netstat -ano | findstr "1055"
然后查詢對應(yīng)PID的進(jìn)程名:tasklist | findstr "11892" (11892為進(jìn)程pid)
通常來講,極少遇到其他程序占用1055端口的情況,尤其如果看到netstat結(jié)果顯示TCP地址只有0.0.0.0的時候(而不是127.0.0.1),說明許可證服務(wù)器自身出了問題。
可能原因2:License過期
重新生成License.txt,并重新導(dǎo)入,重啟,未解決問題。
可能原因3:環(huán)境變量
經(jīng)查詢,丟失了環(huán)境變量:ANSYSLMD_LICENSE_FILE=1055@hostname
設(shè)置后重啟,未解決問題。
最后的辦法:重裝許可證服務(wù)器
在試了幾乎所有能找到的方法均未果后,想到了最后的辦法,那就是重裝License?server。
然而,這個操作也是很講究的。如果只是重新覆蓋安裝許可證服務(wù)器程序,則問題會依舊;如果將程序安裝目錄下的Shared Files目錄刪掉(前提是在任務(wù)管理器中終止ANSYS相關(guān)進(jìn)程),則問題大概還會存在;如果在注冊表中刪除與ANSYS有關(guān)的項(xiàng),尤其與系統(tǒng)服務(wù)相關(guān)的那幾項(xiàng),還可能導(dǎo)致無法重裝許可證服務(wù)器的悲劇(因此刪除注冊表中項(xiàng)目之前的備份就很重要了)……
正確地操作在這里:
打開任務(wù)管理器,終止掉與ANSYS有關(guān)的進(jìn)程;
以管理員身份打開CMD窗口,進(jìn)入C: \ Program Files \ Ansys Inc \ Shared Files \ Licensing \ winx64 目錄中,運(yùn)行命令:ansysli_server.exe -k uninstall,刪除server服務(wù);
重啟
刪除Shared Files目錄,再重啟
重新安裝許可證服務(wù)器
如上操作,我重裝了許可證服務(wù)器,重新導(dǎo)入License之后,一切恢復(fù)正常!
總結(jié)
以上是生活随笔為你收集整理的flexnet许可证服务器_ANSYS FlexNet Licensing not running的一种解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: GitHub常见开源协议
- 下一篇: VC2017下开发ATL程序注意事项