mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-02 20:06:06 +01:00 
			
		
		
		
	fix(docs): Fixed creating Windows service commands (#8979)
escaping " to \"
This commit is contained in:
		@@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini
 | 
				
			|||||||
then run the following command:
 | 
					then run the following command:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
 | 
					sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Do not forget to replace `C:\gitea` with the correct Gitea directory.
 | 
					Do not forget to replace `C:\gitea` with the correct Gitea directory.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ menu:
 | 
				
			|||||||
Pour activer le service Windows Gitea, ouvrez une `cmd` en tant qu'Administrateur puis utilisez la commande suivante :
 | 
					Pour activer le service Windows Gitea, ouvrez une `cmd` en tant qu'Administrateur puis utilisez la commande suivante :
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
 | 
					sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
N'oubliez pas de remplacer `C:\gitea` par le chemin que vous avez utilisez pour votre installation.
 | 
					N'oubliez pas de remplacer `C:\gitea` par le chemin que vous avez utilisez pour votre installation.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ menu:
 | 
				
			|||||||
要注册为Windows服务,首先以Administrator身份运行 `cmd`,然后执行以下命令:
 | 
					要注册为Windows服务,首先以Administrator身份运行 `cmd`,然后执行以下命令:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
 | 
					sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
别忘了将 `C:\gitea` 替换成你的 Gitea 安装目录。
 | 
					别忘了将 `C:\gitea` 替换成你的 Gitea 安装目录。
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ menu:
 | 
				
			|||||||
要註冊為 Windows 服務,首先要以管理者身份執行 `cmd`,跳出命令列視窗後執行底下指令:
 | 
					要註冊為 Windows 服務,首先要以管理者身份執行 `cmd`,跳出命令列視窗後執行底下指令:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
 | 
					sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
別忘記將 `C:\gitea` 取代為您的 Gitea 安裝路徑。
 | 
					別忘記將 `C:\gitea` 取代為您的 Gitea 安裝路徑。
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user