mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	This PR cleans up the docs in a way to make them simpler to ingest by our [docs repo](https://gitea.com/gitea/gitea-docusaurus). 1. It includes all of the sed invocations our ingestion did, removing the need to do it at build time. 2. It replaces the shortcode variable replacement method with `@variable@` style, simply for easier sed invocations when required. 3. It removes unused files and moves the docs up a level as cleanup. --------- Signed-off-by: jolheiser <john.olheiser@gmail.com>
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
date: "2017-08-23T09:00:00+02:00"
 | 
						|
title: "Démarrer en tant que service Windows"
 | 
						|
slug: "windows-service"
 | 
						|
sidebar_position: 50
 | 
						|
toc: false
 | 
						|
draft: false
 | 
						|
aliases:
 | 
						|
  - /fr-fr/windows-service
 | 
						|
menu:
 | 
						|
  sidebar:
 | 
						|
    parent: "installation"
 | 
						|
    name: "Service Windows"
 | 
						|
    sidebar_position: 50
 | 
						|
    identifier: "windows-service"
 | 
						|
---
 | 
						|
 | 
						|
# Activer un service Windows
 | 
						|
 | 
						|
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\""
 | 
						|
```
 | 
						|
 | 
						|
N'oubliez pas de remplacer `C:\gitea` par le chemin que vous avez utilisé pour votre installation.
 | 
						|
 | 
						|
Ensuite, ouvrez "Services Windows", puis recherchez le service `gitea`, faites un clic droit et selectionnez "Run". Si tout fonctionne, vous devriez être capable d'accèder à Gitea à l'URL `http://localhost:3000` (ou sur le port configuré si différent de 3000).
 | 
						|
 | 
						|
## Désactiver un service Windows
 | 
						|
 | 
						|
Pour désactiver le service Windows Gitea, ouvrez une `cmd` en tant qu'Administrateur puis utilisez la commande suivante :
 | 
						|
 | 
						|
```
 | 
						|
sc delete gitea
 | 
						|
```
 |