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

windows-service.en-us.md 958 B

12345678910111213141516171819202122232425262728293031323334
  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, first run `cmd` as an Administrator, and then run the following command:
  17. ```
  18. sc create gitea start= auto binPath= ""C:\gitea\gitea.exe" web --config "C:\gitea\custom\conf\app.ini""
  19. ```
  20. Do not forget to replace `C:\gitea` with your real Gitea folder.
  21. After, open "Windows Services", search for the service named "gitea", right-click it and click on "Run". If everything is OK you should be able to reach Gitea on `http://localhost:3000` (or the port is was configured, if different than 3000).
  22. ## Unregister as a service
  23. To unregister Gitea as a service, open `cmd` as an Administrator and run:
  24. ```
  25. sc delete gitea
  26. ```