Solve SVN startup problems in CentOS6.5

Source: Internet
Author: User

Solve SVN startup problems in CentOS6.5

Recently, due to the business needs of the company, I have migrated the svn of the current development project to the ECS (not installed by the author) one day after I restarted the server, I found that the SVN connection failed (SEE ). Run svnserver-d-r/home/lyh/svn/store.

Finally, no IP address is set for the listener. The following command sets the IP address of the listener:

[Plain] view plaincopyprint?
  1. Svnserve-d-r/home/svn/repos -- listen-host123. **. 120 .**


In this case, SVN is successfully started.

During this process, the following message will be prompted if you start the system incorrectly and then start it with the correct command.

In this case, you must first start the command

[Plain] view plaincopyprint?
  1. Ps-ef | grepsvnserve

View the running svn process and then use the command

[Plain] view plaincopyprint?
  1. Kill-92235 (killing 2235 processes)

Finally, use the correct command.

Later, I thought this was actually quite troublesome. Although the server was not often restarted, it was quite troublesome to configure this configuration every time I restarted it. Finally, I wrote a script and it would be okay to start it directly every time I started it.

Set startup

1. Create the execution script svn. sh (/root path). The content is as follows:

[Plain] view plaincopyprint?
  1. #! /Bin/bash
  2. Svnserve-d-r/home/svnroot/repository


2. Add execution permission

[Plain] view plaincopyprint?
  1. # Chmodug + x/root/svn. sh


3. Add automatic run

[Plain] view plaincopyprint?
  1. # Vi/etc/init. d/rc. d/rc. local

Add/root/svn. sh to it

4. Save and exit

Press Esc on the disk and then ": wq" to save the file and exit vi.

Finally, restart and try it on our own, so that we can use it once and for all. The first few lines of commands may make us less trouble in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.