close

這個 nssm 軟體可以將 應用程式 變成 windows上的服務 在背景執行
應用的場景,像是 我們安裝 webservice ,nginx , 它本身沒有自帶自動執行
就可以靠 該軟體 把應用程式 變成 服務 
當然, 您如果有其他需要執行的應用程式 , 也都可以加入


要在Windows上自動啟動Nginx,請下載

http://nssm.cc/download

解壓縮該文件,您將找到32位和64位窗口的“ nssm.exe”文件。 將Windows版本的文件複製到以下文件夾中

C:\ utils \ nssm.exe

以管理員身份啟動命令promt,然後轉到nssm.exe所在的文件夾,然後運行
To auto start Nginx on Windows, download

http://nssm.cc/download

Extract the file, you will find “nssm.exe” file for 32 and 64 bit windows. Copy the file for your Windows version to a folder like

C:\utils\nssm.exe

Start a command promt as user Administrator, then to go the folder where nssm.exe is, then run

.\nssm.exe install “Nginx”"

In the GUI select the nginx.exe path, click install service.

打開 NSSM , 添加完後 , 會在 WINDOWS 服務裡 看到 添加的結果 , 手動去將服務啟動 

Now in Service Manager, you will see new service Nginx, that is set to autostart by default.

You can right click service name and select start.

arrow
arrow
    全站熱搜

    nL 發表在 痞客邦 留言(0) 人氣()