Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6fcc342

Browse files
RedTeaunknwon
authored andcommitted
Update run_as_windows_service.md (#160)
用引号包围的路径前面要加转义符号,円否则无法安装服务。
1 parent 5f5830e commit 6fcc342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎zh-CN/installation/run_as_windows_service.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ In a web browser, generally, `gogs/` in the address bar is sufficient to trigger
5050
Open a command prompt (`cmd.exe`) as an Administrator. Run the following command:
5151

5252
```
53-
C:\> sc create gogs start= auto binPath= ""C:\gogs\gogs.exe" web --config "C:\gogs\conf\app.ini""
53+
C:\> sc create gogs start= auto binPath= "\"C:\gogs\gogs.exe\" web --config \"C:\gogs\conf\app.ini\""
5454
```
5555

5656
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.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /