CVS is currently a popular and excellent version management and Control tool, and it is deeply loved by most http://www.aliyun.com/zixun/aggregation/7155.html "> developers and system managers, It is also a powerful tool for managing other day-to-day documents. Below, the small set on the CVS server installation, configuration and use of a simple, brief introduction, to help you quickly use CVS to do some version of the management and control work.
1. Installation of CVS server
The CVS server version can be downloaded from many places on the web, or to the official CVS website. Depending on the system you are using, download the appropriate version and install it. Since most people currently use CVS server for versioning under Linux and Redhat Linux is one of the most popular Linux distributions, this article will be based on Redhat Linux.
First download the CVS server RPM package, of course, you can download other ways of the package such as source package, which is one of the advantages of Linux. The following command is then used to install:
RPM-IVH cvs-1.10.8-3.i386.rpm
2. Configure/etc/services Files
The first thing to do after installation is to configure the CVS server configuration file to work properly. First, add cvspserver to the services file to make it a service for Linux, the portal to the CVS server routine, configured as follows:
Cvspserver 2401/TCP # CVS Client/server operations
Cvspserver 2401/UDP # CVS Client/server operations
3, configure xinetd, use xinetd to start the CVS server
Go to the/etc/xinetd.d/directory, and then edit a text file, the name must be consistent with the/etc/services in the entry name Cvspserver, so here with Cvspserver as the file name, the contents of the file are as follows:
Service Cvspserver
{
Disable = no
Socket_type = Stream
wait = no
user = root
env = Home=
Server =/usr/bin/cvs
Server_args =-F--allow-root=/home/cvsroot pserver//Designated authentication method is PServer
}
Note: A, the name behind the service
Be sure to be the same as your CVS service name in the/etc/service file; b, env = home= The purpose of this line is to resolve the error of reading the/root/.cvsignore file that was generated while performing some CVS operations, which means running The CVS service will empty the environment variable home so that although the user performing CVS is root, CVS will not be reading the/root/.cvsignore file because of the absence of a home environment variable.