【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

NSSM(the Non-Sucking Service Manager)是一個Windows服務管理助手

可以把一般的Windows程式設定成服務狀態來執行與管理

 

軟體免安裝, 可以到官方網站下載  https://nssm.cc/release/nssm-2.24.zip

下載後解開就可以使用

程式支援32與64位元, 記得選擇適合自己系統的

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

不過要使用命令列輸入指令才會出現圖形介面

倘若不想用圖形介面也可以直接使用指令安裝(後敘)

nssm.exe install

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

如果只有打nssm則會有顯示許多使用方式

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

圖形介面則是長這樣

功能很多, 可以研究看看

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化 【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

 

 

 

 

 

 

 

 

 

 

設定好後確定要安裝只要點install service就可以

命令列則是像這樣

nssm.exe install servicename c:\program.exe

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

接著在服務內就可以看到安裝好的服務

設定則是剛剛介面上指定的囉…

不過裝好後並不會自動啟動, 要自己去開就是

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

若是想要移除也很簡單

使用命令列就會彈出確認對話框囉

nssm.exe remove servicename

【數位3C】使用NSSM將程式安裝為Windows 服務- the Non-Sucking Service Manager 3C/資訊/通訊/網路 Windows 架站 系統優化

 

以上

請多指教, 有什麼想法都可以說