You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
949 B

  1. ---
  2. date: "2016-12-21T15:00:00-02:00"
  3. title: "Register as a Windows Service"
  4. slug: "windows-service"
  5. weight: 10
  6. toc: true
  7. draft: false
  8. menu:
  9. sidebar:
  10. parent: "installation"
  11. name: "Windows Service"
  12. weight: 30
  13. identifier: "windows-service"
  14. ---
  15. # Register as a Windows Service
  16. To register Gitea as a Windows service, open a command prompt (cmd) as an Administrator,
  17. then run the following command:
  18. ```
  19. sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
  20. ```
  21. Do not forget to replace `C:\gitea` with the correct Gitea directory.
  22. Open "Windows Services", search for the service named "gitea", right-click it and click on
  23. "Run". If everything is OK Gitea will be reachable on `http://localhost:3000` (or the port
  24. that was configured).
  25. ## Unregister as a service
  26. To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
  27. ```
  28. sc delete gitea
  29. ```