CVS server configuration process and troubleshooting

Source: Internet
Author: User
CVS server configuration process and troubleshooting-Linux Enterprise Application-Linux server application information. The following is a detailed description. Because development requires configuring a CVS server for version management, my configuration is as follows:

1. Check whether cvs is installed.
[Root @ localhost/] # rpm-qa | grep cvs
Cvs-1.11.22-5.el5

Redhat as5.0 comes with CVS. If it is not installed, go to www.cvshome.org to download the latest rpm installation.
Rpm-ivh cvs-1.11.2-10.i386.rpm

2. Create a cvs user group to facilitate the management of cvs users
[Root @ localhost/] # groupadd cvs

3. Create the cvsroot user and directory of the cvs Group
[Root @ localhost/] # useradd-g cvs-G cvs-d/home/cvsroot

4. Add a password for the cvsroot user
[Root @ localhost/] # passwd cvsroot

5. Change the Directory attribute of/home/cvsroot.
[Root @ localhost/] # chmod 771/home/cvsroot

6. initialize the source code library of cvs. This operation generates the directory/home/cvsroot/CVSROOT, which contains some initialization files.
[Root @ localhost/] # cvs-d/home/cvsroot init

7. Configure xinetd and use xinetd to start the CVS server
[Root @ localhost/] # vi/etc/xinetd. d/cvs

Service cvspserver
{
Disable = no
Port = 2401
Socket_type = stream
Protocol = tcp
Wait = no
User = root
Passenv = PATH
Server =/usr/bin/cvs
Env = HOME =/home/cvsroot
Server_args =-f -- allow-root =/home/cvsroot pserver
# Bind = 127.0.0.1
}

By default, pserver is used for tacit connection, or you can select ssh or so on.
Server_args =-f -- allow-root =/home/cvsroot SSH

-F -- allow-root =/home/cvsroot is the directory just initialized

8. Restart inetd or xinetd:
[Root @ localhost/] #/etc/init. d/xinetd restart

10. Check whether the cvspserver service has been started.
[Root @ localhost/] # netstat-l | grep cvspserver
Tcp 0 0 *: cvspserver *: * LISTEN

11. test:
[Root @ localhost/] # cvs-d: pserver: cvsroot@192.168.0.89:/home/cvsroot login

Press the Enter command and press enter to enter the liuyw password. You can enter the liuyw password according to your own password. If there is no error message, it will be successful.

Several problems I encountered
Unable to restart xinetd. d

[Root @ localhost/] #/etc/rc. d/init. d/xinetd restart
-Bash:/etc/rc. d/init. d/xinetd: No such file or directory

Only the server can be restarted at a time. After the server is restarted, the process and port are not monitored.

Later it was found that the redhat as5.0 was not installed with xinetd by default. In the second disc, after the attachment, rpm-ivh xine *. rpm restarts xinetd, and processes and ports are also listening.

[Root @ localhost/] # netstat-l | grep cvspserver
Tcp 0 0 *: cvspserver *: * LISTEN

Then, use the WINCVS client in windows to connect normally.

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.