Create and use a CVS server
CVSServer Creation
1.Login as root
2.CreateCVSUser, createCVSGroup
Groupadd CVS
Useradd-G CVS
3.Create a storageCVSContent directory, such/Usr/local/CVS/Repository
4.Initialization
CVS-D/usr/local/CVS/Repository init
CD/usr/local/CVS
Chown-r cvs. CVS Repository
Chmod-r 4774 Repository
5.SetPserverService
ØIn/Etc/servicesAdd:
Cvspserver2401/tcp# CVS client/server operations
Cvspserver2401/udp# CVS client/server operations
ØIn/Etc/xinetd. d/Add files under the DirectoryCvspserver:
Service cvspserver
{
Disable = No
Flags = Reuse
Socket_type = stream
Wait = No
User = root
Server =/usr/bin/CVS
Server_args =-f -- allow-root =/usr/local/CVS/Repository pserver
Log_on_failure + = userid
}
ØRestartXinetd
/Etc/init. d/xinetd restart
6.Client Access
ø Settings cvsroot (cvsuser Yes CVS group member ) :
: Pserver: cvsuser@10.1.84.77:/opt/OSP/CVS/Repository
ØLogin
CVS Login
ØCommon commands
I. Import A new project: put all the content in the current directory into the project name CVS Directory: /Usr/local/CVS/Repository/ Project name / All contents in the current directory
CVS import-M "new app"Project name Company NameStart
II. checkin checkout commit omitted