How to configure cvs in centos

Source: Internet
Author: User
I read a lot of tutorials on the Internet, all of which were copied. I checked the documents and shared them. 1. check whether the CVS server has been installed. input: rpm & ndash; qcvs (no painting, input yuminstallcvs for installation) Note: RPM is the abbreviation of RedHatPackageManager (RedHat package management tool)

I read a lot of tutorials on the Internet, all of which were copied. I checked the documents and shared them.

 

1. install the CVS server

Determine whether the installation is successful

Input: rpm-q cvs (no painting, input yum install cvs for installation)

Note: RPM is the abbreviation of RedHat Package Manager (RedHat Package management tool ).

 

2. configure etc/services

 

Input: vi etc/services

Add

 

Cvspserver 2401/tcp # cvs client/server operations

Cvspserver 2401/udp # cvs client/server operations

 

3. configure xinetd and use xinetd to start the CVS verification server:

Go to the/etc/xinetd. d/directory.

Input: cd/etc/xinetd. d

 

Input: vi cvspserver

Enter the following content and save it.

 

Service cvspserver

{

Disable = no

Flags = REUSE

Socket_type = stream

Wait = no

User = root

Server =/usr/bin/cvs

Server_args =-f -- allow-root =/usr/cvsroot pserver

Log_on_failure + = USERID

}

 

Run:/etc/init. d/xinetd restart.

Verification: telnet localhost 2401

 

If the configuration is confirmed, the following words will appear:

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

Input hi and the following words will be output.

Cvs [pserver aborted]: bad auth protocol start: hi

Connection closed by foreign host.

 

 

4. configure a CVS user

 

Groupadd cvs

Useradd cvsuser-g cvs

Passwd cvsuser

 

Create the cvsroot directory under the/usr Directory (you can also create the Directory in another directory, but it should be consistent with the option in the cvspserver file), and then modify the owner and attributes of/usr/cvsroot:

Cd/usr

Mkdir cvsroot

Chown-R cvsuser: cvs cvsroot

Chmod-r 771 cvsroot

 

5. initialize the CVS server

 

Cvs-d/usr/cvsroot init

If no prompt is displayed, the initialization is successful.

 

 

6. log on to the cvs server

Cvs-d: pserver: cvsuser @ localhost:/usr/cvsroot login

 

After writing.

Related Article

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.