From eb36000a218f8359bcad666be3b0345acab33ce6 Mon Sep 17 00:00:00 2001 From: redtea Date: Fri, 14 Apr 2017 15:05:09 +0800 Subject: [PATCH] Update run_as_windows_service.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用引号包围的路径前面要加转义符号\,否则无法安装服务。 --- zh-CN/installation/run_as_windows_service.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh-CN/installation/run_as_windows_service.md b/zh-CN/installation/run_as_windows_service.md index 56141013..2ddead68 100644 --- a/zh-CN/installation/run_as_windows_service.md +++ b/zh-CN/installation/run_as_windows_service.md @@ -50,7 +50,7 @@ In a web browser, generally, `gogs/` in the address bar is sufficient to trigger Open a command prompt (`cmd.exe`) as an Administrator. Run the following command: ``` -C:\> sc create gogs start= auto binPath= ""C:\gogs\gogs.exe" web --config "C:\gogs\conf\app.ini"" +C:\> sc create gogs start= auto binPath= "\"C:\gogs\gogs.exe\" web --config \"C:\gogs\conf\app.ini\"" ``` Ensure there is a space after each `=`. You can choose to add additional Arguments to further modify your service, or modify it manually in the service management console.