Home  >  Article  >  How to start svn service

How to start svn service

小老鼠
小老鼠Original
2024-01-22 16:58:512175browse

The startup methods mainly include using the command line and registering Windows services. Detailed introduction: 1. Start using the command line: Open the command line window, switch to the absolute path of the SVN warehouse, and enter the command svnserve -d -r to start the SVN service; 2. Register the Windows service: Open the command prompt as administrator and enter the command etc.

How to start svn service

There are two main ways to start the SVN service:

  1. Use the command line to start:

    • Open the command line window and switch to the absolute path of the SVN warehouse.
    • Enter the command svnserve -d -r to start the SVN service.
    • Among them -d means background execution, -r means the root directory of the version library.
    • After startup, you can use network commands (such as netstat -an) to check whether port 3690 is being monitored to confirm whether the service is started successfully.
  2. Register Windows Service:

    • First, you need to open the command prompt as an administrator.
    • Then, enter the command sc create binpath= " --service -r " to create the service.
    • Where is the service name you want, is the path of svnserve.exe, is the root directory of the repository path.
    • After creating the service, you need to start the service first, enter the command sc start .
    • If the service fails to start, it may be due to spaces in the path or permission issues. You can try enclosing the path in the command in quotes and making sure the command prompt is run as an administrator.
    • If you need to stop or delete a service, you can use the corresponding command sc stop or sc delete .

The above is the detailed content of How to start svn service. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn